chore: fix lint issues and improve formatting

This commit is contained in:
ExplodingDragon
2026-02-01 01:27:50 +08:00
parent df15e4a168
commit 51ec7972a4
2 changed files with 9 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ func WithEvent(event subscribe.Subscriber) ServerOption {
}
}
func WithMetaCache(cache kv.KV, ttl time.Duration, refresh time.Duration, refreshConcurrent int) ServerOption {
func WithMetaCache(cache kv.KV, ttl, refresh time.Duration, refreshConcurrent int) ServerOption {
return func(c *serverConfig) {
c.cacheMeta = cache
c.cacheMetaTTL = ttl