File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -221,14 +221,13 @@ impl Host {
221
221
self . readyset_status = ReadysetStatus :: Unknown ;
222
222
Ok ( ProxyStatus :: Shunned )
223
223
}
224
- Err ( err) => Err ( mysql:: Error :: IoError ( std:: io:: Error :: new (
225
- std :: io :: ErrorKind :: Other ,
226
- format ! ( "Failed to execute query: {}" , err) ,
227
- ) ) ) ,
224
+ Err ( err) => Err ( mysql:: Error :: IoError ( std:: io:: Error :: other ( format ! (
225
+ "Failed to execute query: {}" ,
226
+ err
227
+ ) ) ) ) ,
228
228
}
229
229
}
230
- None => Err ( mysql:: Error :: IoError ( std:: io:: Error :: new (
231
- std:: io:: ErrorKind :: Other ,
230
+ None => Err ( mysql:: Error :: IoError ( std:: io:: Error :: other (
232
231
"Connection to Readyset host is not established" ,
233
232
) ) ) ,
234
233
}
@@ -278,8 +277,7 @@ impl Host {
278
277
pub fn cache_query ( & mut self , query : & Query ) -> Result < bool , mysql:: Error > {
279
278
match & mut self . conn {
280
279
None => {
281
- return Err ( mysql:: Error :: IoError ( std:: io:: Error :: new (
282
- std:: io:: ErrorKind :: Other ,
280
+ return Err ( mysql:: Error :: IoError ( std:: io:: Error :: other (
283
281
"Connection to Readyset host is not established" ,
284
282
) ) )
285
283
}
You can’t perform that action at this time.
0 commit comments