initialize client options context if not provided
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
6f1c30aef5
commit
90f9b0d0c9
@ -125,6 +125,10 @@ func newOptions(options ...Option) Options {
|
||||
opts.Transport = transport.DefaultTransport
|
||||
}
|
||||
|
||||
if opts.Context == nil {
|
||||
opts.Context = context.Background()
|
||||
}
|
||||
|
||||
return opts
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user