mirror of
https://github.com/telemt/telemt.git
synced 2026-04-17 10:34:11 +03:00
Add must_use attribute to UserConnectionReservation and RouteConnectionLease structs for better resource management
This commit is contained in:
@@ -24,6 +24,7 @@ enum HandshakeOutcome {
|
||||
Handled,
|
||||
}
|
||||
|
||||
#[must_use = "UserConnectionReservation must be kept alive to retain user/IP reservation until release or drop"]
|
||||
struct UserConnectionReservation {
|
||||
stats: Arc<Stats>,
|
||||
ip_tracker: Arc<UserIpTracker>,
|
||||
|
||||
Reference in New Issue
Block a user