File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ package blockservice
6
6
import (
7
7
"context"
8
8
"errors"
9
- "fmt"
10
9
"io"
11
10
"sync"
12
11
@@ -150,8 +149,7 @@ func (s *blockService) AddBlock(o blocks.Block) error {
150
149
log .Event (context .TODO (), "BlockService.BlockAdded" , c )
151
150
152
151
if err := s .exchange .HasBlock (o ); err != nil {
153
- // TODO(#4623): really an error?
154
- return errors .New ("blockservice is closed" )
152
+ log .Errorf ("HasBlock: %s" , err .Error ())
155
153
}
156
154
157
155
return nil
@@ -189,8 +187,7 @@ func (s *blockService) AddBlocks(bs []blocks.Block) error {
189
187
for _ , o := range toput {
190
188
log .Event (context .TODO (), "BlockService.BlockAdded" , o .Cid ())
191
189
if err := s .exchange .HasBlock (o ); err != nil {
192
- // TODO(#4623): Should this really *return*?
193
- return fmt .Errorf ("blockservice is closed (%s)" , err )
190
+ log .Errorf ("HasBlock: %s" , err .Error ())
194
191
}
195
192
}
196
193
return nil
You can’t perform that action at this time.
0 commit comments