mirror of
https://github.com/unpoller/unpoller.git
synced 2026-10-05 05:51:33 +02:00
Replaces the sent-bool guard duplicated across three goroutines with a small per-call helper (recoverInitialize/recoverEvents/recoverMetrics) that wraps the plugin call and converts a panic into a returned error. Each goroutine then always sends its result exactly once, so there's no risk of a double-send deadlocking the collector. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>