feat(backend): use github.com/klauspost/compress for gzip

This commit is contained in:
Łukasz Mierzwa
2022-07-07 13:35:25 +01:00
committed by Łukasz Mierzwa
parent 98ea0dc5fe
commit fcc9cfc38c
7 changed files with 8 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
package main
import (
"compress/flate"
"context"
"errors"
"fmt"
@@ -30,6 +29,7 @@ import (
"github.com/go-chi/chi/v5/middleware"
"github.com/go-chi/cors"
lru "github.com/hashicorp/golang-lru"
"github.com/klauspost/compress/flate"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"

View File

@@ -2,7 +2,6 @@ package main
import (
"bytes"
"compress/gzip"
"encoding/base64"
"encoding/json"
"fmt"
@@ -15,6 +14,7 @@ import (
"github.com/cnf/structhash"
"github.com/fvbommel/sortorder"
"github.com/klauspost/compress/gzip"
"github.com/prymitive/karma/internal/alertmanager"
"github.com/prymitive/karma/internal/config"