aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/swarm/hash.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/swarm/hash.go')
-rw-r--r--cmd/swarm/hash.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/swarm/hash.go b/cmd/swarm/hash.go
index c82456b3c..bca4955b1 100644
--- a/cmd/swarm/hash.go
+++ b/cmd/swarm/hash.go
@@ -18,6 +18,7 @@
package main
import (
+ "context"
"fmt"
"os"
@@ -39,7 +40,7 @@ func hash(ctx *cli.Context) {
stat, _ := f.Stat()
fileStore := storage.NewFileStore(storage.NewMapChunkStore(), storage.NewFileStoreParams())
- addr, _, err := fileStore.Store(f, stat.Size(), false)
+ addr, _, err := fileStore.Store(context.TODO(), f, stat.Size(), false)
if err != nil {
utils.Fatalf("%v\n", err)
} else {