From feda74ade1e09541b30a00d51f2950681e70cd7c Mon Sep 17 00:00:00 2001 From: pg9182 <96569817+pg9182@users.noreply.github.com> Date: Sun, 23 Oct 2022 11:55:28 -0400 Subject: all: Switch go github.com/klauspost/compress/gzip It's much faster. --- pkg/api/api0/api.go | 2 +- pkg/api/api0/serverlist.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/api/api0') diff --git a/pkg/api/api0/api.go b/pkg/api/api0/api.go index cc6002a..3df86b1 100644 --- a/pkg/api/api0/api.go +++ b/pkg/api/api0/api.go @@ -14,7 +14,6 @@ package api0 import ( "bytes" - "compress/gzip" "crypto/rand" "encoding/hex" "encoding/json" @@ -24,6 +23,7 @@ import ( "sync" "time" + "github.com/klauspost/compress/gzip" "github.com/r2northstar/atlas/pkg/origin" "github.com/rs/zerolog/hlog" "golang.org/x/mod/semver" diff --git a/pkg/api/api0/serverlist.go b/pkg/api/api0/serverlist.go index 83fb283..53f7b95 100644 --- a/pkg/api/api0/serverlist.go +++ b/pkg/api/api0/serverlist.go @@ -2,7 +2,6 @@ package api0 import ( "bytes" - "compress/gzip" "crypto/sha256" "encoding/binary" "encoding/hex" @@ -17,6 +16,7 @@ import ( "time" "unicode/utf8" + "github.com/klauspost/compress/gzip" "github.com/r2northstar/atlas/pkg/nstypes" ) -- cgit v1.2.3