Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-blockservice
Commits
dfa7749e
Commit
dfa7749e
authored
Jan 02, 2015
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blockstore: suppress exchange error
parent
80555862
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
blockservice.go
blockservice.go
+6
-2
No files found.
blockservice.go
View file @
dfa7749e
...
...
@@ -50,9 +50,13 @@ func (s *BlockService) AddBlock(b *blocks.Block) (u.Key, error) {
// consider moving this to an sync process.
if
s
.
Exchange
!=
nil
{
ctx
:=
context
.
TODO
()
err
=
s
.
Exchange
.
HasBlock
(
ctx
,
b
)
if
err
:=
s
.
Exchange
.
HasBlock
(
ctx
,
b
);
err
!=
nil
{
// suppress error, as the client shouldn't care about bitswap.
// the client only cares about the blockstore.Put.
log
.
Errorf
(
"Exchange.HasBlock error: %s"
,
err
)
}
}
return
k
,
err
return
k
,
nil
}
// GetBlock retrieves a particular block from the service,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment