Skip to content

Commit 0c2f9a7

Browse files
committed
don't use &struct{} as context key
1 parent bf138a2 commit 0c2f9a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

db/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var (
1515

1616
var (
1717
conn = sqldb.ConnectionWithError(context.Background(), errors.New("database connection not initialized"))
18-
connCtxKey struct{}
18+
connCtxKey int
1919

20-
serializedTransactionCtxKey struct{}
20+
serializedTransactionCtxKey int
2121
)

0 commit comments

Comments
 (0)