rename func
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
ec3c1a02fc
commit
21d5ca1cdd
@ -25,8 +25,8 @@ func SetSubscribeOption(k, v interface{}) SubscribeOption {
|
||||
}
|
||||
}
|
||||
|
||||
// SetBrokerOption returns a function to setup a context with given value
|
||||
func SetBrokerOption(k, v interface{}) Option {
|
||||
// SetOption returns a function to setup a context with given value
|
||||
func SetOption(k, v interface{}) Option {
|
||||
return func(o *Options) {
|
||||
if o.Context == nil {
|
||||
o.Context = context.Background()
|
||||
|
Loading…
x
Reference in New Issue
Block a user