Skip to content

Commit

Permalink
Update cache.go
Browse files Browse the repository at this point in the history
  • Loading branch information
AmarnathCJD authored Feb 4, 2024
1 parent dee4415 commit bfdbf40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telegram/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func NewCache(logLevel string) *CACHE {

// --------- Cache file Functions ---------
func (c *CACHE) WriteFile() {
c.Lock()
defer c.Unlock()
//c.Lock()
//defer c.Unlock() // necessary?

if c.file == nil {
var err error
Expand Down

0 comments on commit bfdbf40

Please sign in to comment.