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
Commits
a6710e9f
Commit
a6710e9f
authored
10 years ago
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(gcr/s) comment
parent
5caa179d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
core/corerouting/core.go
core/corerouting/core.go
+3
-1
No files found.
core/corerouting/core.go
View file @
a6710e9f
...
...
@@ -23,7 +23,9 @@ var (
errServersMissing
=
errors
.
New
(
"grandcentral client requires at least 1 server peer"
)
)
// TODO doc
// GrandCentralServer returns a configuration for a routing server that stores
// routing records to the provided datastore. Only routing records are store in
// the datastore.
func
GrandCentralServer
(
recordSource
datastore
.
ThreadSafeDatastore
)
core
.
RoutingOption
{
return
func
(
ctx
context
.
Context
,
node
*
core
.
IpfsNode
)
(
routing
.
IpfsRouting
,
error
)
{
if
node
.
Peerstore
==
nil
{
...
...
This diff is collapsed.
Click to expand it.
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