From c580255d13d79f4ed4db0a080f655c6c0f82b5fc Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Sat, 6 Apr 2019 07:41:58 -0700 Subject: [PATCH] relay: drop design comments These are issues for another day. --- config/config.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/config/config.go b/config/config.go index 695a3e2c..e895eed9 100644 --- a/config/config.go +++ b/config/config.go @@ -218,16 +218,8 @@ func (cfg *Config) NewNode(ctx context.Context) (host.Host, error) { if hop { // advertise ourselves - // TODO: Why do we only do this when EnableAutoRelay is - // set? This has absolutely _nothing_ to do with - // autorelay. relay.Advertise(ctx, discovery) } else { - // TODO - // 1. Stop abusing contexts like this. - // 2. Introduce a service management system (e.g., - // uber's fx) so we can actually manage the lifetime of - // this service. _ = relay.NewAutoRelay(swrm.Context(), h, discovery, router) } }