From 575a04527589a3961722b251dae0870509c3b5fc Mon Sep 17 00:00:00 2001 From: xxj <346944475@qq.com> Date: Thu, 26 Aug 2021 20:51:02 +0800 Subject: [PATCH] Update def.go --- data/view/genfunc/def.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/view/genfunc/def.go b/data/view/genfunc/def.go index 982f2ab..8bc7d41 100755 --- a/data/view/genfunc/def.go +++ b/data/view/genfunc/def.go @@ -36,7 +36,7 @@ type _BaseMgr struct { isRelated bool } -// SetCtx set context +// SetTimeOut set timeout func (obj *_BaseMgr) SetTimeOut(timeout time.Duration) { obj.ctx, obj.cancel = context.WithTimeout(context.Background(), timeout) obj.timeout = timeout @@ -49,7 +49,7 @@ func (obj *_BaseMgr) SetCtx(c context.Context) { } } -// Ctx get context +// GetCtx get context func (obj *_BaseMgr) GetCtx() context.Context { return obj.ctx }