🐛 Fix JetStream invalid stream name

This commit is contained in:
LittleSheep 2025-01-27 15:48:09 +08:00
parent 1f75a9e64b
commit 72d0cbb7be

View File

@ -69,7 +69,7 @@ func InitializeToNexus() error {
} }
jetstreamCfg := &nats.StreamConfig{ jetstreamCfg := &nats.StreamConfig{
Name: "Passport OTPs", Name: "OTPs",
Subjects: []string{FactorOtpPrefix + ">"}, Subjects: []string{FactorOtpPrefix + ">"},
Storage: nats.MemoryStorage, Storage: nats.MemoryStorage,
MaxAge: 5 * time.Minute, MaxAge: 5 * time.Minute,