aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/pdatadb/db.go2
-rw-r--r--go.mod1
-rw-r--r--go.sum2
-rw-r--r--pkg/api/api0/api.go2
-rw-r--r--pkg/api/api0/serverlist.go2
-rw-r--r--pkg/memstore/memstore.go2
6 files changed, 7 insertions, 4 deletions
diff --git a/db/pdatadb/db.go b/db/pdatadb/db.go
index cf1ebcb..1e4c9e5 100644
--- a/db/pdatadb/db.go
+++ b/db/pdatadb/db.go
@@ -3,7 +3,6 @@ package pdatadb
import (
"bytes"
- "compress/gzip"
"crypto/sha256"
"database/sql"
"encoding/hex"
@@ -12,6 +11,7 @@ import (
"net/url"
"github.com/jmoiron/sqlx"
+ "github.com/klauspost/compress/gzip"
)
// DB stores player data in a sqlite3 database.
diff --git a/go.mod b/go.mod
index 5e356e9..c387082 100644
--- a/go.mod
+++ b/go.mod
@@ -8,6 +8,7 @@ require (
github.com/cardigann/harhar v0.0.0-20161005032312-acb91b7a8682
github.com/hashicorp/go-envparse v0.1.0
github.com/jmoiron/sqlx v1.3.5
+ github.com/klauspost/compress v1.15.11
github.com/mattn/go-sqlite3 v1.14.15
github.com/rs/zerolog v1.28.0
github.com/spf13/pflag v1.0.5
diff --git a/go.sum b/go.sum
index bce45b8..5056e15 100644
--- a/go.sum
+++ b/go.sum
@@ -12,6 +12,8 @@ github.com/hashicorp/go-envparse v0.1.0 h1:bE++6bhIsNCPLvgDZkYqo3nA+/PFI51pkrHdm
github.com/hashicorp/go-envparse v0.1.0/go.mod h1:OHheN1GoygLlAkTlXLXvAdnXdZxy8JUweQ1rAXx1xnc=
github.com/jmoiron/sqlx v1.3.5 h1:vFFPA71p1o5gAeqtEAwLU4dnX2napprKtHr7PYIcN3g=
github.com/jmoiron/sqlx v1.3.5/go.mod h1:nRVWtLre0KfCLJvgxzCsLVMogSvQ1zNJtpYr2Ccp0mQ=
+github.com/klauspost/compress v1.15.11 h1:Lcadnb3RKGin4FYM/orgq0qde+nc15E5Cbqg4B9Sx9c=
+github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM=
github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
github.com/lib/pq v1.10.6 h1:jbk+ZieJ0D7EVGJYpL9QTz7/YW6UHbmdnZWYyK5cdBs=
github.com/lib/pq v1.10.6/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
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"
)
diff --git a/pkg/memstore/memstore.go b/pkg/memstore/memstore.go
index 553f926..adabfea 100644
--- a/pkg/memstore/memstore.go
+++ b/pkg/memstore/memstore.go
@@ -3,12 +3,12 @@ package memstore
import (
"bytes"
- "compress/gzip"
"crypto/sha256"
"io"
"strings"
"sync"
+ "github.com/klauspost/compress/gzip"
"github.com/r2northstar/atlas/pkg/api/api0"
)