···3939 return nil, fmt.Errorf("failed to start jetstream: %w", err)
4040 }
41414242- // Check if the knot knows about any DIDs;
4242+ // Check if the knot knows about any Dids;
4343 // if it does, it is already initialized and we can repopulate the
4444 // Jetstream subscriptions.
4545- dids, err := db.GetAllDIDs()
4545+ dids, err := db.GetAllDids()
4646 if err != nil {
4747- return nil, fmt.Errorf("failed to get all DIDs: %w", err)
4747+ return nil, fmt.Errorf("failed to get all Dids: %w", err)
4848 }
4949 if len(dids) > 0 {
5050 h.knotInitialized = true
+1-1
knotserver/jsclient/jetstream.go
···4747 j.triggerReconnect()
4848}
49495050-// UpdateDids updates the DIDs list and triggers a reconnection
5050+// UpdateDids updates the Dids list and triggers a reconnection
5151func (j *JetstreamClient) UpdateDids(dids []string) {
5252 j.mu.Lock()
5353 j.dids = dids
+5-5
knotserver/routes.go
···369369370370func (h *Handle) NewRepo(w http.ResponseWriter, r *http.Request) {
371371 data := struct {
372372- DID string `json:"did"`
372372+ Did string `json:"did"`
373373 Name string `json:"name"`
374374 }{}
375375···378378 return
379379 }
380380381381- did := data.DID
381381+ did := data.Did
382382 name := data.Name
383383384384 repoPath := filepath.Join(h.c.Repo.ScanPath, did, name)
···399399 }
400400401401 data := struct {
402402- DID string `json:"did"`
402402+ Did string `json:"did"`
403403 PublicKey string `json:"key"`
404404 Created string `json:"created"`
405405 }{}
···409409 return
410410 }
411411412412- did := data.DID
412412+ did := data.Did
413413 key := data.PublicKey
414414 created := data.Created
415415···428428 return
429429 }
430430431431- if err := h.db.AddDID(did); err == nil {
431431+ if err := h.db.AddDid(did); err == nil {
432432 pk := db.PublicKey{
433433 Did: did,
434434 }