summary refs log tree commit diff stats
path: root/svc/db.go
diff options
context:
space:
mode:
Diffstat (limited to 'svc/db.go')
-rw-r--r--svc/db.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/svc/db.go b/svc/db.go
index ce20ed0..3841d83 100644
--- a/svc/db.go
+++ b/svc/db.go
@@ -4,6 +4,7 @@ import (
 	"time"
 
 	"github.com/syndtr/goleveldb/leveldb"
+	"golang.org/x/sys/unix"
 )
 
 type dbase interface {
@@ -49,6 +50,8 @@ func pushDB() error {
 	err := db.push()
 	dbChan <- db
 
+	unix.Sync()
+
 	return err
 }