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