Merge pull request #46 from unistack-org/naming

fix func naming
This commit is contained in:
Василий Толстов 2022-11-27 01:05:28 +03:00 committed by GitHub
commit dd792ba674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ type wrapper struct {
*/ */
} }
func NewHandlerWrapper(fn func(context.Context, server.Request, interface{}, error) error) server.HandlerWrapper { func NewServerHandlerWrapper(fn func(context.Context, server.Request, interface{}, error) error) server.HandlerWrapper {
handler := &wrapper{ handler := &wrapper{
serverHandlerFunc: fn, serverHandlerFunc: fn,
} }
@ -41,7 +41,7 @@ func (w *wrapper) HandlerFunc(fn server.HandlerFunc) server.HandlerFunc {
} }
} }
func NewSubscriberWrapper(fn func(context.Context, server.Message, error) error) server.SubscriberWrapper { func NewServerSubscriberWrapper(fn func(context.Context, server.Message, error) error) server.SubscriberWrapper {
handler := &wrapper{ handler := &wrapper{
serverSubscriberFunc: fn, serverSubscriberFunc: fn,
} }