自动对访问日志进行分表

This commit is contained in:
GoEdgeLab
2022-03-08 19:55:39 +08:00
parent 54a3264802
commit 45adeec1c2
10 changed files with 582 additions and 245 deletions

View File

@@ -1,6 +1,7 @@
package tasks
package tasks_test
import (
"github.com/TeaOSLab/EdgeAPI/internal/tasks"
"github.com/iwind/TeaGo/dbs"
"testing"
)
@@ -8,7 +9,7 @@ import (
func TestServerAccessLogCleaner_Loop(t *testing.T) {
dbs.NotifyReady()
task := NewServerAccessLogCleaner()
task := tasks.NewServerAccessLogCleaner()
err := task.Loop()
if err != nil {
t.Fatal(err)