Add comment explaining where streams are defined

This commit is contained in:
Neil Alexander 2022-01-05 13:49:45 +00:00
parent 066aeb40b4
commit ffa793426c
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -67,7 +67,7 @@ func setupNATS(cfg *config.JetStream, nc *natsclient.Conn) (nats.JetStreamContex
return nil, nil, nil return nil, nil, nil
} }
for _, stream := range streams { for _, stream := range streams { // streams are defined in streams.go
name := cfg.TopicFor(stream.Name) name := cfg.TopicFor(stream.Name)
info, err := s.StreamInfo(name) info, err := s.StreamInfo(name)
if err != nil && err != natsclient.ErrStreamNotFound { if err != nil && err != natsclient.ErrStreamNotFound {