File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -616,12 +616,12 @@ impl WriteFlags {
616
616
}
617
617
618
618
/// Get whether buffer hint is enabled.
619
- pub fn get_buffer_hint ( & self ) -> bool {
619
+ pub fn get_buffer_hint ( self ) -> bool {
620
620
( self . flags & grpc_sys:: GRPC_WRITE_BUFFER_HINT ) != 0
621
621
}
622
622
623
623
/// Get whether compression is disabled.
624
- pub fn get_force_no_compress ( & self ) -> bool {
624
+ pub fn get_force_no_compress ( self ) -> bool {
625
625
( self . flags & grpc_sys:: GRPC_WRITE_NO_COMPRESS ) != 0
626
626
}
627
627
}
@@ -679,8 +679,7 @@ impl SinkBase {
679
679
}
680
680
681
681
ser ( t, & mut self . buffer ) ;
682
- let hint = flags. get_buffer_hint ( ) ;
683
- self . last_buf_hint &= hint;
682
+ self . last_buf_hint &= flags. get_buffer_hint ( ) ;
684
683
self . buf_flags = Some ( flags) ;
685
684
686
685
// If sink disable batch, start sending the message in buffer immediately.
You can’t perform that action at this time.
0 commit comments