From d4691bcca8426e17cfe2a25de39a9b50fbc835f6 Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Mon, 20 Jan 2025 21:26:14 +0100 Subject: [PATCH] refactor: minor comment improvements This commit makes minor updates to comments for better clarity and consistency. No functional code changes are included. --- discovery/db_discovery.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discovery/db_discovery.go b/discovery/db_discovery.go index 1bf822abf4..ce26410db9 100644 --- a/discovery/db_discovery.go +++ b/discovery/db_discovery.go @@ -189,7 +189,7 @@ func (dbo *DBOrchestratorPoolCache) cacheOrchestratorStake() error { } resc, errc := make(chan *common.DBOrch, len(orchs)), make(chan error, len(orchs)) - timeout := getOrchestratorTimeoutLoop //needs to be same or longer than GRPCConnectTimeout in server/rpc.go + timeout := getOrchestratorTimeoutLoop // Needs to be same or longer than GRPCConnectTimeout in server/rpc.go ctx, cancel := context.WithTimeout(context.Background(), timeout) defer cancel() @@ -266,7 +266,7 @@ func (dbo *DBOrchestratorPoolCache) cacheDBOrchs() error { } resc, errc, skipped := make(chan *common.DBOrch, len(orchs)), make(chan error, len(orchs)), make(chan int, len(orchs)) - timeout := getOrchestratorTimeoutLoop //needs to be same or longer than GRPCConnectTimeout in server/rpc.go + timeout := getOrchestratorTimeoutLoop // Needs to be same or longer than GRPCConnectTimeout in server/rpc.go ctx, cancel := context.WithTimeout(context.Background(), timeout) defer cancel() @@ -276,7 +276,7 @@ func (dbo *DBOrchestratorPoolCache) cacheDBOrchs() error { errc <- err return } - //do not connect if URI host is not set + // Do not connect if URI host is not set if uri.Host == "" { skipped <- 1 return