Use MIN associated const (#9199)

This commit is contained in:
Squirrel
2021-06-24 15:48:39 +01:00
committed by GitHub
parent eac38de198
commit 20347c2edb
7 changed files with 32 additions and 32 deletions
@@ -42,7 +42,7 @@ mod rep {
use super::ReputationChange as Rep;
/// Reputation change when a peer sent us the same request multiple times.
pub const SAME_REQUEST: Rep = Rep::new(i32::min_value(), "Same state request multiple times");
pub const SAME_REQUEST: Rep = Rep::new(i32::MIN, "Same state request multiple times");
}
/// Generates a [`ProtocolConfig`] for the block request protocol, refusing incoming requests.