提交 22a15259 作者: Steven Allen

fix(example): cancel context

上级 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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论