rework
Some checks failed
build / test (push) Failing after 1m16s
codeql / analyze (go) (push) Failing after 1m37s
build / lint (push) Successful in 9m16s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2024-04-23 22:32:49 +03:00
parent 8edb53d141
commit f85cbcdca2

View File

@ -83,7 +83,9 @@ var DefaultMetadataFunc = func(ctx context.Context) (context.Context, error) {
type hook struct{} type hook struct{}
var Hook = &hook{} func NewHook() *hook {
return &hook{}
}
func (w *hook) ServerSubscriber(next server.FuncSubHandler) server.FuncSubHandler { func (w *hook) ServerSubscriber(next server.FuncSubHandler) server.FuncSubHandler {
return func(ctx context.Context, msg server.Message) error { return func(ctx context.Context, msg server.Message) error {