1- // Copyright 2018-2019 Kodebox, Inc.
1+ // Copyright 2018-2020 Kodebox, Inc.
22// This file is part of CodeChain.
33//
44// This program is free software: you can redistribute it and/or modify
@@ -23,7 +23,7 @@ use crate::client::Client;
2323use crate :: session:: Session ;
2424use crate :: stream:: Stream ;
2525use crate :: { FiltersControl , NodeId , RoutingTable , SocketAddr } ;
26- use ccrypto:: aes :: SymmetricCipherError ;
26+ use ccrypto:: error :: SymmError ;
2727use cio:: { IoChannel , IoContext , IoHandler , IoHandlerResult , IoManager , StreamToken , TimerToken } ;
2828use ckey:: NetworkId ;
2929use finally_block:: finally;
@@ -1155,8 +1155,8 @@ impl IoHandler<Message> for Handler {
11551155 }
11561156}
11571157
1158- impl From < SymmetricCipherError > for Error {
1159- fn from ( err : SymmetricCipherError ) -> Self {
1158+ impl From < SymmError > for Error {
1159+ fn from ( err : SymmError ) -> Self {
11601160 Error :: SymmetricCipher ( err)
11611161 }
11621162}
@@ -1186,7 +1186,7 @@ pub enum Message {
11861186#[ derive( Debug ) ]
11871187enum Error {
11881188 InvalidNode ( NodeId ) ,
1189- SymmetricCipher ( SymmetricCipherError ) ,
1189+ SymmetricCipher ( SymmError ) ,
11901190}
11911191
11921192impl :: std:: fmt:: Display for Error {
0 commit comments