This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 1fa467a  fix: incorrect conversion between integer types (#1753)
1fa467a is described below

commit 1fa467a3ffc627e37cc7057b6c1887eb4eba2c31
Author: nic-chen <[email protected]>
AuthorDate: Tue Apr 13 05:24:04 2021 +0800

    fix: incorrect conversion between integer types (#1753)
---
 api/internal/utils/utils.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/internal/utils/utils.go b/api/internal/utils/utils.go
index c20c6be..16cdc50 100644
--- a/api/internal/utils/utils.go
+++ b/api/internal/utils/utils.go
@@ -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)
                }

Reply via email to