diff --git a/internal/imports/imports_linux.go b/internal/imports/imports_linux.go index 6fca72d..9d197c0 100644 --- a/internal/imports/imports_linux.go +++ b/internal/imports/imports_linux.go @@ -50,7 +50,6 @@ import ( _ "google.golang.org/grpc/credentials" _ "google.golang.org/grpc/health/grpc_health_v1" _ "google.golang.org/protobuf/types/known/timestamppb" - _ "io/ioutil" _ "net" _ "net/url" _ "os" diff --git a/main.go b/main.go index b78913d..15ccca7 100644 --- a/main.go +++ b/main.go @@ -24,7 +24,6 @@ package main import ( "context" "crypto/tls" - "io/ioutil" "net/url" "os" "os/signal" @@ -179,7 +178,7 @@ func main() { ) server := grpc.NewServer(options...) responderEndpoint.Register(server) - tmpDir, err := ioutil.TempDir("", cfg.Name) + tmpDir, err := os.MkdirTemp("", cfg.Name) if err != nil { logrus.Fatalf("error creating tmpDir %+v", err) }