mirror of
https://github.com/edwingeng/hotswap.git
synced 2025-12-24 11:52:07 +08:00
correct the comment of WithFreeDelay
This commit is contained in:
@@ -207,7 +207,7 @@ func WithLogger(log slog.Logger) Option {
|
||||
}
|
||||
}
|
||||
|
||||
// WithFreeDelay sets the delay time of calling OnFree. The default value is 15 seconds.
|
||||
// WithFreeDelay sets the delay time of calling OnFree. The default value is 5 minutes.
|
||||
func WithFreeDelay(d time.Duration) Option {
|
||||
return func(mgr *PluginManagerSwapper) {
|
||||
mgr.opts.freeDelay = d
|
||||
|
||||
Reference in New Issue
Block a user