🐛 Trying to fix nats: subject does not match consumer

This commit is contained in:
2025-01-27 16:12:09 +08:00
parent 144219f0aa
commit e4ba72725e
2 changed files with 4 additions and 2 deletions

View File

@ -72,7 +72,7 @@ func InitializeToNexus() error {
Name: "OTPs",
Subjects: []string{FactorOtpPrefix + ">"},
Storage: nats.MemoryStorage,
MaxAge: 5 * time.Minute,
MaxAge: 30 * time.Minute,
}
_, err = Jt.AddStream(jetstreamCfg)
if err != nil && !errors.Is(err, nats.ErrStreamNameAlreadyInUse) {