Skip to content

Commit d6c6767

Browse files
committed
fix: split type to avoid collisions
1 parent 1597fcd commit d6c6767

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

context/context.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@ func GetRead(ctx context.Context) (datastore.Read, bool) {
2828
return batch, ok
2929
}
3030

31-
type key int
31+
type (
32+
writeKeyTp int
33+
readKeyTp int
34+
)
3235

3336
var (
34-
writeKey key
35-
readKey key
37+
writeKey writeKeyTp
38+
readKey readKeyTp
3639
)

0 commit comments

Comments
 (0)