Skip to content
Snippets Groups Projects
Commit 22a15259 authored by Steven Allen's avatar Steven Allen
Browse files

fix(example): cancel context

parent 2660bb5d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment