mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-27 12:31:02 +00:00 
			
		
		
		
	Merge remote-tracking branch 'forgejo/forgejo-dependency' into wip-forgejo
This commit is contained in:
		
				commit
				
					
						9283604810
					
				
			
		
					 48 changed files with 504 additions and 40 deletions
				
			
		|  | @ -44,6 +44,7 @@ var ( | |||
| 		ConnMaxLifetime   time.Duration | ||||
| 		IterateBufferSize int | ||||
| 		AutoMigration     bool | ||||
| 		SlowQueryTreshold time.Duration | ||||
| 	}{ | ||||
| 		Timeout:           500, | ||||
| 		IterateBufferSize: 50, | ||||
|  | @ -86,6 +87,7 @@ func loadDBSetting(rootCfg ConfigProvider) { | |||
| 	Database.DBConnectRetries = sec.Key("DB_RETRIES").MustInt(10) | ||||
| 	Database.DBConnectBackoff = sec.Key("DB_RETRY_BACKOFF").MustDuration(3 * time.Second) | ||||
| 	Database.AutoMigration = sec.Key("AUTO_MIGRATION").MustBool(true) | ||||
| 	Database.SlowQueryTreshold = sec.Key("SLOW_QUERY_TRESHOLD").MustDuration(5 * time.Second) | ||||
| } | ||||
| 
 | ||||
| // DBConnStr returns database connection string | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue