Skip to content

collectors: tolerate DeadlineExceeded in PeerCollector#126

Merged
Roasbeef merged 1 commit intolightninglabs:masterfrom
ziggie1984:fix/peer-collector-deadline-exceeded
Feb 20, 2026
Merged

collectors: tolerate DeadlineExceeded in PeerCollector#126
Roasbeef merged 1 commit intolightninglabs:masterfrom
ziggie1984:fix/peer-collector-deadline-exceeded

Conversation

@ziggie1984
Copy link
Contributor

PeerCollector was missing the IsDeadlineExceeded guard that
ChainCollector and ChannelsCollector already have, causing lndmon
to crash whenever lnd was temporarily slow to respond to ListPeers.

This makes the behaviour consistent across all three collectors.

ChainCollector and ChannelsCollector already handle gRPC deadline
exceeded errors gracefully by logging and skipping the scrape cycle
rather than crashing. PeerCollector was missing this same guard,
causing lndmon to exit whenever lnd was temporarily slow to respond
to a ListPeers call.
Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🌨️

@Roasbeef Roasbeef merged commit 79d4936 into lightninglabs:master Feb 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants