diff --git a/common/coords.go b/common/coords.go index dce9b46..dc57e6e 100644 --- a/common/coords.go +++ b/common/coords.go @@ -5,7 +5,6 @@ package common import ( - "fmt" "strconv" ) @@ -16,5 +15,5 @@ func DecodePosFromBytes(key []byte) (pos int64, err error) { // Encode a block pos to byte slice. func EncodePosToBytes(key int64) []byte { - return []byte(fmt.Sprintf("%d", key)) + return []byte(strconv.FormatInt(key, 10)) }