add opt gracefultimeout broker #410

Merged
vtolstov merged 1 commits from devstigneev/micro:v4_new_opts into v4 2025-12-10 15:22:37 +03:00
Showing only changes of commit e7f9f638bd - Show all commits

View File

@@ -80,6 +80,12 @@ func Context(ctx context.Context) Option {
}
}
func GracefulTimeout(t time.Duration) Option {
return func(o *Options) {
o.GracefulTimeout = t
}
}
// ContentType used by default if not specified
func ContentType(ct string) Option {
return func(o *Options) {