Skip to content

Commit

Permalink
fix: incorrect conversion between integer types
Browse files Browse the repository at this point in the history
  • Loading branch information
johzchen committed Apr 12, 2021
1 parent 8b6080d commit 8fd9bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func init() {
saltStr, ok := os.LookupEnv("FLAKE_SALT")
var salt uint16
if ok {
i, err := strconv.Atoi(saltStr)
i, err := strconv.ParseUint(saltStr, 10, 16)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 8fd9bd2

Please sign in to comment.