@cryptotaxi247 / kubo / commits / a6710e9f5

feat(gcr/s) comment

Brian Tiger Chow committed Feb 2, 2015 at 05:59 UTC a6710e9f53088f0430bbf196e39c6421e6a54b85
1 file changed +3 -1
core/corerouting/core.go
+3 -1
@@ -23,7 +23,9 @@ var (
23 errServersMissing = errors.New("grandcentral client requires at least 1 server peer")
24 )
25
26 -// TODO doc
26 +// GrandCentralServer returns a configuration for a routing server that stores
27 +// routing records to the provided datastore. Only routing records are store in
28 +// the datastore.
29 func GrandCentralServer(recordSource datastore.ThreadSafeDatastore) core.RoutingOption {
30 return func(ctx context.Context, node *core.IpfsNode) (routing.IpfsRouting, error) {
31 if node.Peerstore == nil {