fix db file dependencies (#56)

This commit is contained in:
Sarv
2025-04-18 00:31:19 +08:00
committed by GitHub
parent b866d6eddd
commit 85b5465d2a
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{},