From 5fd798c9b6cf092a9fc30a36dc002aa943b21e43 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Mon, 1 Jul 2019 23:11:55 +0100 Subject: [PATCH] add resolver comment --- network/resolver/resolver.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/network/resolver/resolver.go b/network/resolver/resolver.go index 14b6aeb0..6c54eb95 100644 --- a/network/resolver/resolver.go +++ b/network/resolver/resolver.go @@ -1,6 +1,9 @@ // Package resolver resolves network ids to addresses package resolver +// Resolver is network resolver. It's used to find network nodes +// via id to connect to. This is done based on Network.Id(). +// Before we can be part of any network, we have to connect to it. type Resolver interface { // Resolve returns a list of addresses for an id Resolve(id string) ([]*Record, error)