···4343 return4444 }45454646+ j.l.Info("adding did to in-memory filter", "did", did)4647 j.mu.Lock()4748 j.wantedDids[did] = struct{}{}4849 j.mu.Unlock()···5251type processor func(context.Context, *models.Event) error53525453func (j *JetstreamClient) withDidFilter(processFunc processor) processor {5454+ // empty filter => all dids allowed5555+ if len(j.wantedDids) == 0 {5656+ return processFunc5757+ }5558 // since this closure references j.WantedDids; it should auto-update5659 // existing instances of the closure when j.WantedDids is mutated5760 return func(ctx context.Context, evt *models.Event) error {
+1
knotserver/handler.go
···6060 if err != nil {6161 return nil, fmt.Errorf("failed to get all Dids: %w", err)6262 }6363+6364 if len(dids) > 0 {6465 h.knotInitialized = true6566 close(h.init)