()
| 147 | } |
| 148 | |
| 149 | func loadOptionsFromDatabase() { |
| 150 | options, _ := AllOption() |
| 151 | for _, option := range options { |
| 152 | err := updateOptionMap(option.Key, option.Value) |
| 153 | if err != nil { |
| 154 | common.SysError("failed to update option map: " + err.Error()) |
| 155 | } |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | func SyncOptions(frequency int) { |
| 160 | for { |
no test coverage detected