File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1546,15 +1546,15 @@ func (h *heartbeats) cleanup() {
1546
1546
// the records we are attempting to clean up do no serious harm other than
1547
1547
// accumulating in the tables, so we don't bother retrying if it fails.
1548
1548
err := h .store .CleanTailnetCoordinators (h .ctx )
1549
- if err != nil {
1549
+ if err != nil && ! database . IsQueryCanceledError ( err ) {
1550
1550
h .logger .Error (h .ctx , "failed to cleanup old coordinators" , slog .Error (err ))
1551
1551
}
1552
1552
err = h .store .CleanTailnetLostPeers (h .ctx )
1553
- if err != nil {
1553
+ if err != nil && ! database . IsQueryCanceledError ( err ) {
1554
1554
h .logger .Error (h .ctx , "failed to cleanup lost peers" , slog .Error (err ))
1555
1555
}
1556
1556
err = h .store .CleanTailnetTunnels (h .ctx )
1557
- if err != nil {
1557
+ if err != nil && ! database . IsQueryCanceledError ( err ) {
1558
1558
h .logger .Error (h .ctx , "failed to cleanup abandoned tunnels" , slog .Error (err ))
1559
1559
}
1560
1560
h .logger .Debug (h .ctx , "completed cleanup" )
You can’t perform that action at this time.
0 commit comments