File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ fn create_request_response_behaviour(
29
29
) -> request_response:: cbor:: Behaviour < Vec < u8 > , Vec < u8 > > {
30
30
use request_response:: { Behaviour , Config , ProtocolSupport } ;
31
31
32
- const REQUEST_RESPONSE_TIMEOUT : Duration = Duration :: from_secs ( 180 ) ;
32
+ const REQUEST_RESPONSE_TIMEOUT : Duration = Duration :: from_secs ( 512 ) ;
33
33
34
34
Behaviour :: new (
35
35
[ ( protocol_name, ProtocolSupport :: Full ) ] ,
Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ pub enum DriaMessageError {
33
33
DecodeError ( base64:: DecodeError ) ,
34
34
#[ error( "Could not parse message: {0}" ) ]
35
35
ParseError ( serde_json:: Error ) ,
36
- #[ error( "Invalid header (expected {expected:?}, got {found:?})" ) ]
36
+ #[ error( "Protocol mismatch (expected {expected:?}, got {found:?})" ) ]
37
37
ProtocolMismatch { expected : String , found : String } ,
38
- #[ error( "Invalid header (expected {expected:?}, got {found:?})" ) ]
38
+ #[ error( "Version mismatch (expected {expected:?}, got {found:?})" ) ]
39
39
VersionMismatch {
40
40
expected : SemanticVersion ,
41
41
found : SemanticVersion ,
Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ impl SemanticVersion {
36
36
/// Checks if the current version is compatible with the given version.
37
37
/// Compatibility is defined as:
38
38
/// - Major and minor versions must match exactly.
39
- /// - Patch version must be greater than or equal to the given version .
39
+ /// - Patch versions dont have to match .
40
40
pub fn is_compatible ( & self , other : & Self ) -> bool {
41
- self . major == other. major && self . minor == other. minor && self . patch >= other . patch
41
+ self . major == other. major && self . minor == other. minor
42
42
}
43
43
44
44
pub fn with_major ( mut self , major : u32 ) -> Self {
You can’t perform that action at this time.
0 commit comments