Skip to content

Commit

Permalink
chore: rm unused func
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Dec 2, 2024
1 parent 021615d commit 1f9ef42
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/bot/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,3 @@ func tokHash(token string) string {
h := md5.Sum([]byte(token + "gotd-token-salt")) // #nosec
return fmt.Sprintf("%x", h[:5])
}

func sessionFileName(token string) string {
return fmt.Sprintf("bot.%s.session.json", tokHash(token))
}

0 comments on commit 1f9ef42

Please sign in to comment.