Skip to content

Commit

Permalink
fix(telegram): don't call ensureState after reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Dec 23, 2020
1 parent 969fecb commit 7e473cb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
22 changes: 0 additions & 22 deletions telegram/get_state.go

This file was deleted.

5 changes: 0 additions & 5 deletions telegram/reconnect.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ func (c *Client) reconnect() error {
}

c.log.Debug("Reconnected")

if err := c.ensureState(c.ctx); err != nil {
c.log.With(zap.Error(err)).Error("Failed to get state after reconnect")
return
}
}()

return nil
Expand Down

0 comments on commit 7e473cb

Please sign in to comment.