Merge pull request 'add opt gracefultimeout broker' (#410) from devstigneev/micro:v4_new_opts into v4
Reviewed-on: #410
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user