File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import (
1515 swaggerFiles "github.com/swaggo/files" // swagger embed files
1616 ginSwagger "github.com/swaggo/gin-swagger" // gin-swagger middleware
1717 "golang.org/x/crypto/blake2b"
18- "io/ioutil "
18+ "io"
1919 "time"
2020
2121 _ "github.com/cloudstruct/go-cardano-submit-api/docs" // docs is generated by Swag CLI
@@ -142,7 +142,7 @@ func handleSubmitTx(c *gin.Context) {
142142 return
143143 }
144144 // Read raw transaction bytes from the request body and store in a byte array
145- txRawBytes , err := ioutil .ReadAll (c .Request .Body )
145+ txRawBytes , err := io .ReadAll (c .Request .Body )
146146 if err != nil {
147147 // Log the error, return an error to the user, and increment failed count
148148 logger .Errorf ("failed to read request body: %s" , err )
Original file line number Diff line number Diff line change 66 ouroboros "github.com/cloudstruct/go-ouroboros-network"
77 "github.com/kelseyhightower/envconfig"
88 "gopkg.in/yaml.v2"
9- "io/ioutil"
109 "os"
1110)
1211
@@ -73,7 +72,7 @@ var globalConfig = &Config{
7372func Load (configFile string ) (* Config , error ) {
7473 // Load config file as YAML if provided
7574 if configFile != "" {
76- buf , err := ioutil .ReadFile (configFile )
75+ buf , err := os .ReadFile (configFile )
7776 if err != nil {
7877 return nil , fmt .Errorf ("error reading config file: %s" , err )
7978 }
You can’t perform that action at this time.
0 commit comments