mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-11-29 11:50:22 +01:00
Add test
This commit is contained in:
parent
97410db301
commit
fe5c844a21
2 changed files with 24 additions and 2 deletions
|
|
@ -8,8 +8,8 @@ import (
|
|||
"net/netip"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
_ "github.com/mattn/go-sqlite3" // SQLite driver
|
||||
"heckel.io/ntfy/v2/log"
|
||||
|
|
@ -283,8 +283,8 @@ var (
|
|||
type messageCache struct {
|
||||
db *sql.DB
|
||||
queue *util.BatchingQueue[*message]
|
||||
mu sync.Mutex
|
||||
nop bool
|
||||
mu sync.Mutex
|
||||
}
|
||||
|
||||
// newSqliteCache creates a SQLite file-backed cache
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue