From 3e65b4f6281ddc4039a27a62428db8a95ffc3677 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Thu, 22 Jan 2026 21:53:29 +0100 Subject: refactor(): completely remove old gokord and finish to update everything to use contexts --- common/context.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'common/context.go') diff --git a/common/context.go b/common/context.go index 3a79264..065a994 100644 --- a/common/context.go +++ b/common/context.go @@ -6,12 +6,13 @@ import ( "gorm.io/gorm" ) -type key uint8 +type Key uint8 const ( - keyDB key = 0 - keyDebug key = 1 - keyAuthor key = 2 + keyDB Key = 0 + keyDebug Key = 1 + keyAuthor Key = 2 + KeyCopaingState Key = 3 ) func SetDB(ctx context.Context, db *gorm.DB) context.Context { -- cgit v1.2.3