correcting hooks calling
All checks were successful
lint / lint (pull_request) Successful in 1m2s
test / test (pull_request) Successful in 2m18s

This commit is contained in:
2024-12-17 15:35:04 +03:00
parent 19b04fe070
commit 58eec62419
8 changed files with 45 additions and 7 deletions

View File

@@ -194,7 +194,7 @@ func (n *noopClient) Init(opts ...Option) error {
n.funcPublish = n.fnPublish
n.funcBatchPublish = n.fnBatchPublish
n.opts.Hooks.EachNext(func(hook options.Hook) {
n.opts.Hooks.EachPrev(func(hook options.Hook) {
switch h := hook.(type) {
case HookCall:
n.funcCall = h(n.funcCall)