@@ -417,7 +417,7 @@ impl InnerPostgresConnection {
417417 try!( conn. handle_auth ( user) ) ;
418418
419419 loop {
420- match try_pg_conn ! ( conn. read_message ( ) ) {
420+ match try_pg_conn ! ( conn. read_message_ ( ) ) {
421421 BackendKeyData { process_id, secret_key } => {
422422 conn. cancel_data . process_id = process_id;
423423 conn. cancel_data . secret_key = secret_key;
@@ -440,7 +440,7 @@ impl InnerPostgresConnection {
440440 Ok ( try_desync ! ( self , self . stream. flush( ) ) )
441441 }
442442
443- fn read_message ( & mut self ) -> IoResult < BackendMessage > {
443+ fn read_message_ ( & mut self ) -> IoResult < BackendMessage > {
444444 debug_assert ! ( !self . desynchronized) ;
445445 loop {
446446 match try_desync ! ( self , self . stream. read_message( ) ) {
@@ -463,7 +463,7 @@ impl InnerPostgresConnection {
463463 }
464464
465465 fn handle_auth ( & mut self , user : PostgresUserInfo ) -> Result < ( ) , PostgresConnectError > {
466- match try_pg_conn ! ( self . read_message ( ) ) {
466+ match try_pg_conn ! ( self . read_message_ ( ) ) {
467467 AuthenticationOk => return Ok ( ( ) ) ,
468468 AuthenticationCleartextPassword => {
469469 let pass = match user. password {
@@ -503,7 +503,7 @@ impl InnerPostgresConnection {
503503 }
504504 }
505505
506- match try_pg_conn ! ( self . read_message ( ) ) {
506+ match try_pg_conn ! ( self . read_message_ ( ) ) {
507507 AuthenticationOk => Ok ( ( ) ) ,
508508 ErrorResponse { fields } => Err ( PgConnectDbError ( PostgresDbError :: new ( fields) ) ) ,
509509 _ => {
@@ -535,7 +535,7 @@ impl InnerPostgresConnection {
535535 } ,
536536 Sync ] ) ) ;
537537
538- match try_pg ! ( self . read_message ( ) ) {
538+ match try_pg ! ( self . read_message_ ( ) ) {
539539 ParseComplete => { }
540540 ErrorResponse { fields } => {
541541 try!( self . wait_for_ready ( ) ) ;
@@ -544,14 +544,14 @@ impl InnerPostgresConnection {
544544 _ => bad_response ! ( self ) ,
545545 }
546546
547- let mut param_types: Vec < PostgresType > = match try_pg ! ( self . read_message ( ) ) {
547+ let mut param_types: Vec < PostgresType > = match try_pg ! ( self . read_message_ ( ) ) {
548548 ParameterDescription { types } => {
549549 types. iter ( ) . map ( |ty| PostgresType :: from_oid ( * ty) ) . collect ( )
550550 }
551551 _ => bad_response ! ( self ) ,
552552 } ;
553553
554- let mut result_desc: Vec < ResultDescription > = match try_pg ! ( self . read_message ( ) ) {
554+ let mut result_desc: Vec < ResultDescription > = match try_pg ! ( self . read_message_ ( ) ) {
555555 RowDescription { descriptions } => {
556556 descriptions. into_iter ( ) . map ( |RowDescriptionEntry { name, type_oid, .. } | {
557557 ResultDescription {
@@ -613,7 +613,7 @@ impl InnerPostgresConnection {
613613 }
614614
615615 fn wait_for_ready ( & mut self ) -> PostgresResult < ( ) > {
616- match try_pg ! ( self . read_message ( ) ) {
616+ match try_pg ! ( self . read_message_ ( ) ) {
617617 ReadyForQuery { .. } => Ok ( ( ) ) ,
618618 _ => bad_response ! ( self )
619619 }
@@ -625,7 +625,7 @@ impl InnerPostgresConnection {
625625
626626 let mut result = vec ! [ ] ;
627627 loop {
628- match try_pg ! ( self . read_message ( ) ) {
628+ match try_pg ! ( self . read_message_ ( ) ) {
629629 ReadyForQuery { .. } => break ,
630630 DataRow { row } => {
631631 result. push ( row. into_iter ( ) . map ( |opt| {
@@ -887,8 +887,8 @@ impl PostgresConnection {
887887 self . conn . borrow_mut ( ) . wait_for_ready ( )
888888 }
889889
890- fn read_message ( & self ) -> IoResult < BackendMessage > {
891- self . conn . borrow_mut ( ) . read_message ( )
890+ fn read_message_ ( & self ) -> IoResult < BackendMessage > {
891+ self . conn . borrow_mut ( ) . read_message_ ( )
892892 }
893893
894894 fn write_messages ( & self , messages : & [ FrontendMessage ] ) -> IoResult < ( ) > {
@@ -1063,7 +1063,7 @@ impl<'conn> PostgresStatement<'conn> {
10631063 } ,
10641064 Sync ] ) ) ;
10651065 loop {
1066- match try_pg ! ( self . conn. read_message ( ) ) {
1066+ match try_pg ! ( self . conn. read_message_ ( ) ) {
10671067 ReadyForQuery { .. } => break ,
10681068 ErrorResponse { fields } => {
10691069 try!( self . conn . wait_for_ready ( ) ) ;
@@ -1108,7 +1108,7 @@ impl<'conn> PostgresStatement<'conn> {
11081108 } ,
11091109 Sync ] ) ) ;
11101110
1111- match try_pg ! ( conn. read_message ( ) ) {
1111+ match try_pg ! ( conn. read_message_ ( ) ) {
11121112 BindComplete => Ok ( ( ) ) ,
11131113 ErrorResponse { fields } => {
11141114 try!( self . conn . wait_for_ready ( ) ) ;
@@ -1175,7 +1175,7 @@ impl<'conn> PostgresStatement<'conn> {
11751175 let mut conn = self . conn . conn . borrow_mut ( ) ;
11761176 let num;
11771177 loop {
1178- match try_pg ! ( conn. read_message ( ) ) {
1178+ match try_pg ! ( conn. read_message_ ( ) ) {
11791179 DataRow { .. } => { }
11801180 ErrorResponse { fields } => {
11811181 try!( conn. wait_for_ready ( ) ) ;
@@ -1275,7 +1275,7 @@ impl<'stmt> PostgresRows<'stmt> {
12751275 Sync ] ) ) ;
12761276
12771277 loop {
1278- match try_pg ! ( conn. read_message ( ) ) {
1278+ match try_pg ! ( conn. read_message_ ( ) ) {
12791279 ReadyForQuery { .. } => break ,
12801280 ErrorResponse { fields } => {
12811281 try!( conn. wait_for_ready ( ) ) ;
@@ -1291,7 +1291,7 @@ impl<'stmt> PostgresRows<'stmt> {
12911291 fn read_rows ( & mut self ) -> PostgresResult < ( ) > {
12921292 let mut conn = self . stmt . conn . conn . borrow_mut ( ) ;
12931293 loop {
1294- match try_pg ! ( conn. read_message ( ) ) {
1294+ match try_pg ! ( conn. read_message_ ( ) ) {
12951295 EmptyQueryResponse | CommandComplete { .. } => {
12961296 self . more_rows = false ;
12971297 break ;
0 commit comments