fix db file dependencies

This commit is contained in:
Shen Junzheng
2025-04-18 00:28:26 +08:00
parent b866d6eddd
commit 27fdb9eac3
5 changed files with 21 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ func NewDBManager(path string) *DBManager {
}
}
func (d *DBManager) AddGroup(g Group) error {
func (d *DBManager) AddGroup(g *Group) error {
fg, err := filemonitor.NewFileGroup(g.Name, d.path, g.Pattern, g.BlackList)
if err != nil {
return err

View File

@@ -9,7 +9,7 @@ import (
func TestXxx(t *testing.T) {
path := "/Users/sarv/Documents/chatlog/bigjun_9e7a"
g := Group{
g := &Group{
Name: "session",
Pattern: `session\.db$`,
BlackList: []string{},