From a6710e9f53088f0430bbf196e39c6421e6a54b85 Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow <brian.holderchow@gmail.com> Date: Mon, 2 Feb 2015 05:59:29 -0800 Subject: [PATCH] feat(gcr/s) comment --- core/corerouting/core.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/corerouting/core.go b/core/corerouting/core.go index f22f687a1..cb68389f6 100644 --- a/core/corerouting/core.go +++ b/core/corerouting/core.go @@ -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 { -- GitLab