mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-27 09:12:15 +02:00
lntest: fix colliding variable name
The variable name "bytes" collides with an imported package name, so we rename it to avoid shadowing.
This commit is contained in:
parent
61bffa70f9
commit
5afe7852b5
@ -511,12 +511,12 @@ func (hn *HarnessNode) String() string {
|
|||||||
nodeState.ClosedChans[outpoint.String()] = count
|
nodeState.ClosedChans[outpoint.String()] = count
|
||||||
}
|
}
|
||||||
|
|
||||||
bytes, err := json.MarshalIndent(nodeState, "", "\t")
|
stateBytes, err := json.MarshalIndent(nodeState, "", "\t")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Sprintf("\n encode node state with err: %v", err)
|
return fmt.Sprintf("\n encode node state with err: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return fmt.Sprintf("\nnode state: %s", bytes)
|
return fmt.Sprintf("\nnode state: %s", stateBytes)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DBPath returns the filepath to the channeldb database file for this node.
|
// DBPath returns the filepath to the channeldb database file for this node.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user