common.LogInfo(c.Request.Context(),fmt.Sprintf("user %d quota %d and token %d quota %d are enough, trusted and no need to pre-consume",relayInfo.UserId,userQuota,relayInfo.TokenId,tokenQuota))
common.LogInfo(c,fmt.Sprintf("user %d quota %d and token %d quota %d are enough, trusted and no need to pre-consume",relayInfo.UserId,userQuota,relayInfo.TokenId,tokenQuota))
}
}
}else{
}else{
// in this case, we do not pre-consume quota
// in this case, we do not pre-consume quota
// because the user has enough quota
// because the user has enough quota
preConsumedQuota=0
preConsumedQuota=0
common.LogInfo(c.Request.Context(),fmt.Sprintf("user %d with unlimited token has enough quota %d, trusted and no need to pre-consume",relayInfo.UserId,userQuota))
common.LogInfo(c,fmt.Sprintf("user %d with unlimited token has enough quota %d, trusted and no need to pre-consume",relayInfo.UserId,userQuota))