Skip to content

Commit

Permalink
gtoken v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangb committed Jan 12, 2022
1 parent 760824c commit 795ca25
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion gtoken/gtoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ func (m *GfToken) getToken(ctx context.Context, userKey string) Resp {
if gconv.Int64(refreshTime) == 0 || nowTime > gconv.Int64(refreshTime) {
userCache[KeyCreateTime] = gtime.Now().TimestampMilli()
userCache[KeyRefreshTime] = gtime.Now().TimestampMilli() + gconv.Int64(m.MaxRefresh)
g.Log().Debug(ctx, "[GToken]refreshToken:"+gconv.String(userCache))
return m.setCache(ctx, cacheKey, userCache)
}

Expand Down

0 comments on commit 795ca25

Please sign in to comment.