rework
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
8edb53d141
commit
f85cbcdca2
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user