mirror of https://github.com/JustKato/FreePad.git
* Changed the frequency of the views save to one minute
This commit is contained in:
parent
53066025f0
commit
42eb5add65
|
@ -37,7 +37,7 @@ func TaskManager() {
|
|||
func savePostHandler() {
|
||||
// Save the views cache
|
||||
fmt.Println("[Task::Save]: File save registered")
|
||||
for range time.NewTicker(time.Second).C {
|
||||
for range time.NewTicker(time.Minute * 1).C {
|
||||
objects.SavePostViewsCache()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue