@@ -32,7 +32,7 @@ impl TryFrom<u16> for ResponseCode {
3232 RESPONSE_CODE_FRAME_TOO_LARGE => Ok ( ResponseCode :: FrameTooLarge ) ,
3333 RESPONSE_CODE_INTERNAL_ERROR => Ok ( ResponseCode :: InternalError ) ,
3434 RESPONSE_CODE_ACCESS_REFUSED => Ok ( ResponseCode :: AccessRefused ) ,
35- RESPONSE_CODE_PRECONDITION_FAILED => Ok ( ResponseCode :: PrecoditionFailed ) ,
35+ RESPONSE_CODE_PRECONDITION_FAILED => Ok ( ResponseCode :: PreconditionFailed ) ,
3636 RESPONSE_CODE_PUBLISHER_DOES_NOT_EXIST => Ok ( ResponseCode :: PublisherDoesNotExist ) ,
3737 RESPONSE_CODE_OFFSET_NOT_FOUND => Ok ( ResponseCode :: OffsetNotFound ) ,
3838 _ => Err ( DecodeError :: UnknownResponseCode ( value) ) ,
@@ -65,7 +65,7 @@ impl From<&ResponseCode> for u16 {
6565 ResponseCode :: FrameTooLarge => RESPONSE_CODE_FRAME_TOO_LARGE ,
6666 ResponseCode :: InternalError => RESPONSE_CODE_INTERNAL_ERROR ,
6767 ResponseCode :: AccessRefused => RESPONSE_CODE_ACCESS_REFUSED ,
68- ResponseCode :: PrecoditionFailed => RESPONSE_CODE_PRECONDITION_FAILED ,
68+ ResponseCode :: PreconditionFailed => RESPONSE_CODE_PRECONDITION_FAILED ,
6969 ResponseCode :: PublisherDoesNotExist => RESPONSE_CODE_PUBLISHER_DOES_NOT_EXIST ,
7070 ResponseCode :: OffsetNotFound => RESPONSE_CODE_OFFSET_NOT_FOUND ,
7171 }
0 commit comments