rename func

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-09-22 13:17:38 +03:00
parent ec3c1a02fc
commit 21d5ca1cdd

View File

@ -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()