Skip to content

Commit

Permalink
Fix typos in various comments (#2805)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thabokani authored Jan 2, 2024
1 parent e05ed03 commit 63a1d77
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion eclair-core/eclair-cli
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ done;
# jq filter parses response body for error message
jq_filter='if type=="object" and .error != null then .error else .';

# apply special jq filter if we are in "short" ouput mode -- only for specific commands such as 'channels'
# apply special jq filter if we are in "short" output mode -- only for specific commands such as 'channels'
if [ "$short" = true ]; then
jq_channel_filter="{ nodeId, shortChannelId: .data.shortIds.real.realScid, channelId, state, commitments: (.data.commitments.active | map({balanceSat: (try (.localCommit.spec.toLocal / 1000 | floor) catch null), capacitySat: .fundingTx.amountSatoshis, fundingTxIndex: .fundingTxIndex, channelPoint: .fundingTx.outPoint})) }";
case $api_endpoint in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ class TransportHandler[T: ClassTag](keyPair: KeyPair, rs: Option[ByteVector], co
stay() using d.copy(decryptor = dec1, unackedReceived = unackedReceived1)

case Event(ReadAck(msg: T), d: NormalData[T@unchecked]) =>
// how many occurences of this message are still unacked?
// how many occurrences of this message are still unacked?
val remaining = d.unackedReceived.getOrElse(msg, 0) - 1
log.debug("acking message {}", msg)
// if all occurences have been acked then we remove the entry from the map
// if all occurrences have been acked then we remove the entry from the map
val unackedReceived1 = if (remaining > 0) d.unackedReceived + (msg -> remaining) else d.unackedReceived - msg
if (unackedReceived1.isEmpty) {
log.debug("last incoming message was acked, resuming reading")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class PaymentLifecycle(nodeParams: NodeParams, cfg: SendPaymentConfig, router: A
// retry with another channel
handleLocalFail(d, ChannelFailureException, isFatal = false)
case HtlcResult.DisconnectedBeforeSigned(_) =>
// a disconnection occured before the outgoing htlc got signed
// a disconnection occurred before the outgoing htlc got signed
// again, we consider it a local error and treat is as such
handleLocalFail(d, DisconnectedException, isFatal = false)
}
Expand Down
2 changes: 1 addition & 1 deletion eclair-front/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ eclair {
enable-kamon = false

front {
// To be overriden with the same key as the backend, so that the front has the same nodeid
// To be overridden with the same key as the backend, so that the front has the same nodeid
priv-key-provider = "seed" // aws-sm (AWS Secrets Manager) or env (environment variable) or seed (seed.dat)
priv-key = ${?NODE_PRIV_KEY} // used if priv-key-provider = env
aws-sm.priv-key-name = "node-priv-key" // used if priv-key-provider = aws-sm
Expand Down

0 comments on commit 63a1d77

Please sign in to comment.