소스 검색

fix context bug

dcsunny 4 년 전
부모
커밋
50e4abdbd8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      common/context.go

+ 1 - 1
common/context.go

@@ -15,7 +15,7 @@ func NewContext(parentCtx context.Context) context.Context {
 func NewContextWithAccountID(parentCtx context.Context, accountID int64) context.Context {
 	ctx := &AccountContext{ctx: parentCtx}
 	newCtx := context2.AppendToContext(ctx, "user_id", accountID)
-	newCtx = context2.AppendToContext(ctx, "account_id", accountID)
+	newCtx = context2.AppendToContext(newCtx, "account_id", accountID)
 	return newCtx
 }