aboutsummaryrefslogtreecommitdiff
path: root/persistence
diff options
context:
space:
mode:
Diffstat (limited to 'persistence')
-rw-r--r--persistence/sessions.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/persistence/sessions.go b/persistence/sessions.go
index 50e3f3e..36fac52 100644
--- a/persistence/sessions.go
+++ b/persistence/sessions.go
@@ -27,8 +27,8 @@ type Session struct {
var sessionDB SessionsYamlDB
-// Marshaller implementation for YamlDB
-func Marshaller() ([]byte, error) {
+// SessionMarshaller implementation for YamlDB
+func SessionMarshaller() ([]byte, error) {
return yaml.Marshal(sessionDB.Data)
}
@@ -41,9 +41,6 @@ func LoadSessions(path string) (SessionsYamlDB, error) {
return sessionDB, errors.Wrap(err, "Sessions restore error")
}
- sessionDB.Transaction(func() {
- }, Marshaller)
-
return sessionDB, nil
}