Skip to content

Commit

Permalink
fix after review
Browse files Browse the repository at this point in the history
  • Loading branch information
sstanculeanu committed Nov 24, 2023
1 parent 260244d commit f3b1a47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions process/nodeStatusProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,21 +451,21 @@ func (nsp *NodeStatusProcessor) GetGenesisNodesPubKeys() (*data.GenericAPIRespon
return nil, err
}

var responseGenesisNodesConfig data.GenericAPIResponse
var response data.GenericAPIResponse
for _, observer := range observers {

_, err = nsp.proc.CallGetRestEndPoint(observer.Address, GenesisNodesConfigPath, &responseGenesisNodesConfig)
_, err = nsp.proc.CallGetRestEndPoint(observer.Address, GenesisNodesConfigPath, &response)
if err != nil {
log.Error("genesis nodes request", "observer", observer.Address, "error", err.Error())
continue
}

log.Info("genesis nodes request", "shard ID", observer.ShardId, "observer", observer.Address)
return &responseGenesisNodesConfig, nil
return &response, nil

}

return nil, fmt.Errorf("%w, %s", ErrSendingRequest, responseGenesisNodesConfig.Error)
return nil, fmt.Errorf("%w, %s", ErrSendingRequest, response.Error)
}

// GetGasConfigs will return gas configs
Expand Down

0 comments on commit f3b1a47

Please sign in to comment.