提交 b6098bac 作者: Steven Allen
上级 81b1cfea
......@@ -40,7 +40,7 @@ func (api *SwarmAPI) Connect(ctx context.Context, pi pstore.PeerInfo) error {
swrm.Backoff().Clear(pi.ID)
}
if err := api.peerHost.Connect(ctx, pi); err == nil {
if err := api.peerHost.Connect(ctx, pi); err != nil {
return err
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论