Skip to content

Commit d4691bc

Browse files
committed
refactor: minor comment improvements
This commit makes minor updates to comments for better clarity and consistency. No functional code changes are included.
1 parent 6667483 commit d4691bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

discovery/db_discovery.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func (dbo *DBOrchestratorPoolCache) cacheOrchestratorStake() error {
189189
}
190190

191191
resc, errc := make(chan *common.DBOrch, len(orchs)), make(chan error, len(orchs))
192-
timeout := getOrchestratorTimeoutLoop //needs to be same or longer than GRPCConnectTimeout in server/rpc.go
192+
timeout := getOrchestratorTimeoutLoop // Needs to be same or longer than GRPCConnectTimeout in server/rpc.go
193193
ctx, cancel := context.WithTimeout(context.Background(), timeout)
194194
defer cancel()
195195

@@ -266,7 +266,7 @@ func (dbo *DBOrchestratorPoolCache) cacheDBOrchs() error {
266266
}
267267

268268
resc, errc, skipped := make(chan *common.DBOrch, len(orchs)), make(chan error, len(orchs)), make(chan int, len(orchs))
269-
timeout := getOrchestratorTimeoutLoop //needs to be same or longer than GRPCConnectTimeout in server/rpc.go
269+
timeout := getOrchestratorTimeoutLoop // Needs to be same or longer than GRPCConnectTimeout in server/rpc.go
270270
ctx, cancel := context.WithTimeout(context.Background(), timeout)
271271
defer cancel()
272272

@@ -276,7 +276,7 @@ func (dbo *DBOrchestratorPoolCache) cacheDBOrchs() error {
276276
errc <- err
277277
return
278278
}
279-
//do not connect if URI host is not set
279+
// Do not connect if URI host is not set
280280
if uri.Host == "" {
281281
skipped <- 1
282282
return

0 commit comments

Comments
 (0)