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-dms3-provider
Commits
3a98ef95
Unverified
Commit
3a98ef95
authored
Mar 11, 2020
by
Steven Allen
Committed by
GitHub
Mar 11, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #23 from ipfs/fix/return-errors
fix: return errors from the provider
parents
184f9bd2
056b8b66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
simple/provider.go
simple/provider.go
+2
-4
No files found.
simple/provider.go
View file @
3a98ef95
...
...
@@ -64,8 +64,7 @@ func NewProvider(ctx context.Context, queue *q.Queue, contentRouting routing.Con
// Close stops the provider
func
(
p
*
Provider
)
Close
()
error
{
p
.
queue
.
Close
()
return
nil
return
p
.
queue
.
Close
()
}
// Run workers to handle provide requests.
...
...
@@ -75,8 +74,7 @@ func (p *Provider) Run() {
// Provide the given cid using specified strategy.
func
(
p
*
Provider
)
Provide
(
root
cid
.
Cid
)
error
{
p
.
queue
.
Enqueue
(
root
)
return
nil
return
p
.
queue
.
Enqueue
(
root
)
}
// Handle all outgoing cids by providing (announcing) them
...
...
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