From a5c97d68e77ca8c9c5518051f085051487cd0fbf Mon Sep 17 00:00:00 2001 From: bodqhrohro Date: Tue, 12 Nov 2019 17:50:25 +0200 Subject: Spawn TDlib instances for recovered sessions --- persistence/sessions.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'persistence') 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 } -- cgit v1.2.3