relay: drop design comments

These are issues for another day.
This commit is contained in:
Steven Allen 2019-04-06 07:41:58 -07:00
parent 1d8efc31aa
commit c580255d13
1 changed files with 0 additions and 8 deletions

View File

@ -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)
}
}