mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	| @@ -3,15 +3,16 @@ | ||||
|  | ||||
| package setting | ||||
|  | ||||
| // FIXME: DEPRECATED to be removed in v1.18.0 | ||||
| // DEPRECATED should not be removed because users maybe upgrade from lower version to the latest version | ||||
| // if these are removed, the warning will not be shown | ||||
| // - will need to set default for [queue.task] LENGTH to 1000 though | ||||
| func loadTaskFrom(rootCfg ConfigProvider) { | ||||
| 	taskSec := rootCfg.Section("task") | ||||
| 	queueTaskSec := rootCfg.Section("queue.task") | ||||
|  | ||||
| 	deprecatedSetting(rootCfg, "task", "QUEUE_TYPE", "queue.task", "TYPE") | ||||
| 	deprecatedSetting(rootCfg, "task", "QUEUE_CONN_STR", "queue.task", "CONN_STR") | ||||
| 	deprecatedSetting(rootCfg, "task", "QUEUE_LENGTH", "queue.task", "LENGTH") | ||||
| 	deprecatedSetting(rootCfg, "task", "QUEUE_TYPE", "queue.task", "TYPE", "v1.19.0") | ||||
| 	deprecatedSetting(rootCfg, "task", "QUEUE_CONN_STR", "queue.task", "CONN_STR", "v1.19.0") | ||||
| 	deprecatedSetting(rootCfg, "task", "QUEUE_LENGTH", "queue.task", "LENGTH", "v1.19.0") | ||||
|  | ||||
| 	switch taskSec.Key("QUEUE_TYPE").MustString("channel") { | ||||
| 	case "channel": | ||||
|   | ||||
		Reference in New Issue
	
	Block a user