Commit 22a15259 authored by Steven Allen's avatar Steven Allen

fix(example): cancel context

parent 2660bb5d
......@@ -204,7 +204,8 @@ func main() {
fmt.Println("-- Getting an IPFS node running -- ")
ctx, _ := context.WithCancel(context.Background())
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
/*
// Spawn a node using the default path (~/.ipfs), assuming that a repo exists there already
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment