From 4ed94408a29df95aaa696f741061176d2024f0aa Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Tue, 3 Jan 2023 18:30:01 -0500 Subject: [PATCH] Fix import --- pkg/gcrcleaner/server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/gcrcleaner/server.go b/pkg/gcrcleaner/server.go index b01d43a..04b884b 100644 --- a/pkg/gcrcleaner/server.go +++ b/pkg/gcrcleaner/server.go @@ -20,7 +20,6 @@ import ( "encoding/json" "fmt" "io" - "io/ioutil" "net/http" "sort" "strings" @@ -81,7 +80,7 @@ func (s *Server) PubSubHandler(cache Cache) http.HandlerFunc { } // Start a goroutine to delete the images - body := ioutil.NopCloser(bytes.NewReader(m.Message.Data)) + body := io.NopCloser(bytes.NewReader(m.Message.Data)) go func() { // Intentionally don't use the request context, since it terminates but // the background job should still be processing.