aboutsummaryrefslogtreecommitdiff
path: root/matrix/history.go
diff options
context:
space:
mode:
Diffstat (limited to 'matrix/history.go')
-rw-r--r--matrix/history.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/matrix/history.go b/matrix/history.go
index 0cfb84e..767cace 100644
--- a/matrix/history.go
+++ b/matrix/history.go
@@ -20,8 +20,8 @@ import (
"bytes"
"encoding/binary"
"encoding/gob"
- "sync"
+ sync "github.com/sasha-s/go-deadlock"
bolt "go.etcd.io/bbolt"
"maunium.net/go/gomuks/matrix/rooms"
@@ -49,8 +49,8 @@ func NewHistoryManager(dbPath string) (*HistoryManager, error) {
historyLoadPtr: make(map[*rooms.Room]uint64),
}
db, err := bolt.Open(dbPath, 0600, &bolt.Options{
- Timeout: 1,
- NoGrowSync: false,
+ Timeout: 1,
+ NoGrowSync: false,
FreelistType: bolt.FreelistArrayType,
})
if err != nil {