mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Add context.Context to more methods (#21546)
				
					
				
			This PR adds a context parameter to a bunch of methods. Some helper `xxxCtx()` methods got replaced with the normal name now. Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		@@ -42,7 +42,7 @@ func NodeInfo(ctx *context.APIContext) {
 | 
			
		||||
			usersActiveMonth := int(user_model.CountUsers(&user_model.CountUserFilter{LastLoginSince: &timeOneMonthAgo}))
 | 
			
		||||
			usersActiveHalfyear := int(user_model.CountUsers(&user_model.CountUserFilter{LastLoginSince: &timeHaveYearAgo}))
 | 
			
		||||
 | 
			
		||||
			allIssues, _ := issues_model.CountIssues(&issues_model.IssuesOptions{})
 | 
			
		||||
			allIssues, _ := issues_model.CountIssues(ctx, &issues_model.IssuesOptions{})
 | 
			
		||||
			allComments, _ := issues_model.CountComments(&issues_model.FindCommentsOptions{})
 | 
			
		||||
 | 
			
		||||
			nodeInfoUsage = structs.NodeInfoUsage{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user