mirror of
https://github.com/telemt/telemt.git
synced 2026-04-17 18:44:10 +03:00
Add must_use attribute to UserConnectionReservation and RouteConnectionLease structs for better resource management
This commit is contained in:
@@ -26,6 +26,7 @@ enum RouteConnectionGauge {
|
||||
Middle,
|
||||
}
|
||||
|
||||
#[must_use = "RouteConnectionLease must be kept alive to hold the connection gauge increment"]
|
||||
pub struct RouteConnectionLease {
|
||||
stats: Arc<Stats>,
|
||||
gauge: RouteConnectionGauge,
|
||||
|
||||
Reference in New Issue
Block a user