Skip to content

Commit

Permalink
Run gofmt 1.19
Browse files Browse the repository at this point in the history
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
(cherry picked from commit ca3b9b5)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
mxpv authored and thaJeztah committed Mar 7, 2023
1 parent f33e385 commit 5847075
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion content/local/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
"github.com/containerd/containerd/log"
"github.com/sirupsen/logrus"

digest "github.com/opencontainers/go-digest"
"github.com/opencontainers/go-digest"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)

Expand Down
9 changes: 5 additions & 4 deletions pkg/cri/streaming/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

restful "github.com/emicklei/go-restful"
"github.com/emicklei/go-restful"

"k8s.io/apimachinery/pkg/types"
remotecommandconsts "k8s.io/apimachinery/pkg/util/remotecommand"
Expand Down Expand Up @@ -162,9 +162,10 @@ func NewServer(config Config, runtime Runtime) (Server, error) {
handler.Add(ws)
s.handler = handler
s.server = &http.Server{
Addr: s.config.Addr,
Handler: s.handler,
TLSConfig: s.config.TLSConfig,
Addr: s.config.Addr,
Handler: s.handler,
TLSConfig: s.config.TLSConfig,
ReadHeaderTimeout: 3 * time.Second, // Fix linter G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server
}

return s, nil
Expand Down

0 comments on commit 5847075

Please sign in to comment.