aboutsummaryrefslogtreecommitdiff
path: root/weed/storage
diff options
context:
space:
mode:
Diffstat (limited to 'weed/storage')
-rw-r--r--weed/storage/crc.go4
-rw-r--r--weed/storage/volume_read_write.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/weed/storage/crc.go b/weed/storage/crc.go
index df44d1679..e49686dc8 100644
--- a/weed/storage/crc.go
+++ b/weed/storage/crc.go
@@ -1,11 +1,11 @@
package storage
import (
- "fmt"
"crypto/md5"
+ "fmt"
- "github.com/klauspost/crc32"
"github.com/chrislusf/seaweedfs/weed/util"
+ "github.com/klauspost/crc32"
)
var table = crc32.MakeTable(crc32.Castagnoli)
diff --git a/weed/storage/volume_read_write.go b/weed/storage/volume_read_write.go
index f68f6b559..1b9fb8d6e 100644
--- a/weed/storage/volume_read_write.go
+++ b/weed/storage/volume_read_write.go
@@ -42,7 +42,7 @@ func (v *Volume) Destroy() (err error) {
}
v.Close()
os.Remove(v.FileName() + ".dat")
- if v.nm!=nil{
+ if v.nm != nil {
err = v.nm.Destroy()
}
os.Remove(v.FileName() + ".cpd")