aboutsummaryrefslogtreecommitdiff
path: root/pkg/api/api0
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-23 11:55:28 -0400
committerpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-23 11:55:28 -0400
commitfeda74ade1e09541b30a00d51f2950681e70cd7c (patch)
tree1782c2033715f9769b650f4f0e04fa2b4c95ad85 /pkg/api/api0
parent109746880ba8c9bf8271eebfcf605c337c2e32c2 (diff)
downloadAtlas-feda74ade1e09541b30a00d51f2950681e70cd7c.tar.gz
Atlas-feda74ade1e09541b30a00d51f2950681e70cd7c.zip
all: Switch go github.com/klauspost/compress/gzip
It's much faster.
Diffstat (limited to 'pkg/api/api0')
-rw-r--r--pkg/api/api0/api.go2
-rw-r--r--pkg/api/api0/serverlist.go2
2 files changed, 2 insertions, 2 deletions
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"
)