소스 검색

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 년 전
부모
커밋
e1fe80090f
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      crc32_field.go

+ 1 - 2
crc32_field.go

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