diff --git a/main.go b/main.go index 361cf462..5a8eff70 100644 --- a/main.go +++ b/main.go @@ -12,7 +12,7 @@ import ( ) var ( - version = "3.5.1" + version = "3.5.2" log = logrus.New() ) diff --git a/natsapi/utils.go b/natsapi/utils.go index 8f0ad018..cdc382b1 100644 --- a/natsapi/utils.go +++ b/natsapi/utils.go @@ -4,7 +4,7 @@ import ( "encoding/json" "errors" "fmt" - "io/ioutil" + "os" "github.com/jmoiron/sqlx" _ "github.com/lib/pq" @@ -20,7 +20,7 @@ func GetConfig(cfg string) (db *sqlx.DB, r DjangoConfig, err error) { } } - jret, _ := ioutil.ReadFile(cfg) + jret, _ := os.ReadFile(cfg) err = json.Unmarshal(jret, &r) if err != nil { return