diff options
author | bodqhrohro <bodqhrohro@gmail.com> | 2019-11-12 18:50:25 +0300 |
---|---|---|
committer | bodqhrohro <bodqhrohro@gmail.com> | 2019-11-12 18:50:25 +0300 |
commit | a5c97d68e77ca8c9c5518051f085051487cd0fbf (patch) | |
tree | 75e94674574fc613090bd2f05c88ec9d7f8d751d /persistence/sessions.go | |
parent | fbe99c65ec36bb0d8b3a508e0894a9830ff9c995 (diff) |
Spawn TDlib instances for recovered sessions
Diffstat (limited to 'persistence/sessions.go')
-rw-r--r-- | persistence/sessions.go | 7 |
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 } |