Browse Source

Go back to hash/crc32

As of Go 1.7, hash/crc32 has all the same optimizations. This means anyone on
an older Go version will see a performance hit, but anyone who cares about
performance should really be updating to Go 1.7 anyway.
Evan Shaw 9 years ago
parent
commit
e1fe80090f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      crc32_field.go

+ 1 - 2
crc32_field.go

@@ -2,8 +2,7 @@ package sarama
 
 
 import (
 import (
 	"encoding/binary"
 	"encoding/binary"
-
-	"github.com/klauspost/crc32"
+	"hash/crc32"
 )
 )
 
 
 // crc32Field implements the pushEncoder and pushDecoder interfaces for calculating CRC32s.
 // crc32Field implements the pushEncoder and pushDecoder interfaces for calculating CRC32s.