Skip to content

Commit

Permalink
fix: Acquire nil point (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcrevar authored Oct 28, 2024
1 parent b450b5c commit 9f4ee0f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion protocol/localstatequery/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,16 @@ func (c *Client) Start() {

// Acquire starts the acquire process for the specified chain point
func (c *Client) Acquire(point *common.Point) error {
var msg string
if point != nil {
msg = fmt.Sprintf("calling Acquire(point: {Slot: %d, Hash: %x})", point.Slot, point.Hash)
} else {
msg = "calling Acquire(point: latest)"
}

c.Protocol.Logger().
Debug(
fmt.Sprintf("calling Acquire(point: {Slot: %d, Hash: %x})", point.Slot, point.Hash),
msg,
"component", "network",
"protocol", ProtocolName,
"role", "client",
Expand Down

0 comments on commit 9f4ee0f

Please sign in to comment.