(frequency int)
| 93 | } |
| 94 | |
| 95 | func SyncOptions(frequency int) { |
| 96 | for { |
| 97 | time.Sleep(time.Duration(frequency) * time.Second) |
| 98 | logger.SysLog("syncing options from database") |
| 99 | loadOptionsFromDatabase() |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | func UpdateOption(key string, value string) error { |
| 104 | // Save to database first |
no test coverage detected