fixup
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
d44a75d074
commit
0459ea0613
@ -321,22 +321,19 @@ func Listener(l net.Listener) Option {
|
||||
}
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
// HandlerOption func
|
||||
type HandlerOption func(*HandlerOptions)
|
||||
|
||||
// HandlerOptions struct
|
||||
type HandlerOptions struct {
|
||||
=======
|
||||
func GracefulTimeout(t time.Duration) options.Option {
|
||||
return func(src interface{}) error {
|
||||
return options.Set(src, t, ".GracefulTimeout")
|
||||
// GracefulTimeout duration
|
||||
func GracefulTimeout(td time.Duration) options.Option {
|
||||
return func(o *Options) {
|
||||
o.GracefulTimeout = td
|
||||
}
|
||||
}
|
||||
|
||||
// HandleOptions struct
|
||||
type HandleOptions struct {
|
||||
>>>>>>> bf0c3016cb09 (add gracefultimeout in server)
|
||||
|
||||
// HandlerOptions struct
|
||||
type HandlerOptions struct {
|
||||
// Context holds external options
|
||||
Context context.Context
|
||||
// Metadata for handler
|
||||
|
Loading…
x
Reference in New Issue
Block a user