Skip to content

Commit

Permalink
remove empty line instead of comments to make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
bhakiyakalimuthu committed Apr 24, 2024
1 parent fb700a9 commit 4315639
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,16 +342,16 @@ func (m *BoostService) handleGetHeader(w http.ResponseWriter, req *http.Request)
"slotTimeSec": config.SlotTimeSec,
"msIntoSlot": msIntoSlot,
}).Infof("getHeader request start - %d milliseconds into slot %d", msIntoSlot, _slot)

// Add request headers
headers := map[string]string{
HeaderKeySlotUID: slotUID.String(),
HeaderStartTimeMsIntoSlot: fmt.Sprintf("%d", msIntoSlot),
HeaderStartTimeMsUnix: fmt.Sprintf("%d", time.Now().UTC().UnixMilli()),
}

// Prepare relay responses
result := bidResp{} // the final response, containing the highest bid (if any)
relays := make(map[BlockHashHex][]types.RelayEntry) // relays that sent the bid for a specific blockHash

// Call the relays
var mu sync.Mutex
var wg sync.WaitGroup
for _, relay := range m.relays {
Expand Down Expand Up @@ -465,7 +465,6 @@ func (m *BoostService) handleGetHeader(w http.ResponseWriter, req *http.Request)
result.t = time.Now()
}(relay)
}

// Wait for all requests to complete...
wg.Wait()

Expand All @@ -475,6 +474,7 @@ func (m *BoostService) handleGetHeader(w http.ResponseWriter, req *http.Request)
return
}

// Log result
valueEth := weiBigIntToEthBigFloat(result.bidInfo.value.ToBig())
result.relays = relays[BlockHashHex(result.bidInfo.blockHash.String())]
log.WithFields(logrus.Fields{
Expand Down

0 comments on commit 4315639

Please sign in to comment.