Skip to content

Commit

Permalink
chore: remove deprecated io/ioutil package
Browse files Browse the repository at this point in the history
  • Loading branch information
NefixEstrada committed Nov 27, 2023
1 parent d4f86e2 commit 9a5f3ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbconnector/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"crypto/x509"
"errors"
"fmt"
"io/ioutil"
"os"
)

// PrepareTLSConfig creates tls.Config with certificate files
Expand All @@ -26,7 +26,7 @@ func PrepareTLSConfig(caFile, certFile, keyFile string) (*tls.Config, error) {
}

if len(caFile) != 0 {
ca, err := ioutil.ReadFile(caFile)
ca, err := os.ReadFile(caFile)
if err != nil {
return nil, fmt.Errorf("TLS CA file load error: %v", err)
}
Expand Down

0 comments on commit 9a5f3ba

Please sign in to comment.