Skip to content

Commit

Permalink
Move to klauspost/compress/gzip (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinB authored Jul 3, 2022
1 parent 8a39cde commit a531bc1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion read.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package warc
import (
"bufio"
"bytes"
"compress/gzip"
"io"

gzip "github.com/klauspost/compress/gzip"
)

// Reader store the bufio.Reader and gzip.Reader for a WARC file
Expand Down
3 changes: 2 additions & 1 deletion transport.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package warc

import (
"compress/gzip"
"crypto/tls"
"net/http"
"net/url"
"time"

gzip "github.com/klauspost/compress/gzip"
)

type customTransport struct {
Expand Down
3 changes: 2 additions & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package warc
import (
"bufio"
"bytes"
"compress/gzip"
"crypto/sha1"
"encoding/base32"
"errors"
Expand All @@ -14,6 +13,8 @@ import (
"strings"
"time"

gzip "github.com/klauspost/compress/gzip"

"github.com/klauspost/compress/zstd"
)

Expand Down
3 changes: 2 additions & 1 deletion write.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package warc

import (
"bufio"
"compress/gzip"
"fmt"
"io"
"strconv"
"strings"
"time"

gzip "github.com/klauspost/compress/gzip"

"github.com/klauspost/compress/zstd"
uuid "github.com/satori/go.uuid"
)
Expand Down

0 comments on commit a531bc1

Please sign in to comment.