Skip to content

Commit 084064e

Browse files
committed
feat: send nil as a parameter since this is not in request context
Signed-off-by: Mrigesh Pokhrel <mrigesh.pokhrel@docquity.com>
1 parent b53157f commit 084064e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

boot.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ import (
1010
"context"
1111
"embed"
1212
"fmt"
13-
"github.com/rookie-ninja/rk-entry/v2/entry"
14-
"github.com/rookie-ninja/rk-entry/v2/middleware"
15-
"go.uber.org/zap"
1613
"os"
1714
"path/filepath"
1815
"runtime/debug"
16+
17+
rkentry "github.com/rookie-ninja/rk-entry/v2/entry"
18+
rkmid "github.com/rookie-ninja/rk-entry/v2/middleware"
19+
"go.uber.org/zap"
1920
)
2021

2122
type hookFuncM map[string]map[string]func(ctx context.Context)
@@ -80,7 +81,7 @@ func NewBoot(opts ...BootOption) *Boot {
8081
defer syncLog("N/A")
8182

8283
boot := &Boot{
83-
EventId: rkmid.GenerateRequestId(),
84+
EventId: rkmid.GenerateRequestId(nil),
8485
beforeHookF: newHookFuncM(),
8586
afterHookF: newHookFuncM(),
8687
pluginEntries: map[string]map[string]rkentry.Entry{},

0 commit comments

Comments
 (0)