feat(go): add nats fast writer

This commit is contained in:
lingniu
2026-07-03 11:59:33 +08:00
parent 76f5a20b79
commit 0344c65e5b
6 changed files with 466 additions and 6 deletions

View File

@@ -40,7 +40,7 @@ type Config struct {
func (c Config) ttl() time.Duration {
if c.OnlineTTL <= 0 {
return 10 * time.Minute
return time.Minute
}
return c.OnlineTTL
}