File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
src/aero_kernel/src/socket Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ impl UnixSocketBacklog {
65
65
}
66
66
67
67
pub fn len ( & self ) -> usize {
68
- self . backlog . as_ref ( ) . map ( |e| e. len ( ) ) . unwrap_or ( 0 )
68
+ self . backlog . as_ref ( ) . map ( |e| e. len ( ) ) . unwrap ( )
69
69
}
70
70
71
71
pub fn update_capacity ( & mut self , capacity : usize ) {
@@ -142,15 +142,15 @@ impl INodeInterface for UnixSocket {
142
142
. downcast_arc :: < UnixSocket > ( )
143
143
. ok_or ( FileSystemError :: NotSocket ) ?; // NOTE: the provided socket was not a unix socket.
144
144
145
- let mut target = target. inner . write ( ) ;
145
+ let mut itarget = target. inner . write ( ) ;
146
146
147
147
// ensure that the target socket is listening for new connections.
148
- if !target . listening {
148
+ if !itarget . listening {
149
149
return Err ( FileSystemError :: ConnectionRefused ) ;
150
150
}
151
151
152
- target . backlog . push ( self . sref ( ) ) ;
153
- self . wq . notify_complete ( ) ;
152
+ itarget . backlog . push ( self . sref ( ) ) ;
153
+ target . wq . notify_complete ( ) ;
154
154
155
155
Ok ( ( ) )
156
156
}
@@ -165,8 +165,6 @@ impl INodeInterface for UnixSocket {
165
165
}
166
166
167
167
fn poll ( & self , table : Option < & mut PollTable > ) -> Result < EPollEventFlags > {
168
- log:: warn!( "UnixSocket::poll() is a stub" ) ;
169
-
170
168
table. map ( |e| e. insert ( & self . wq ) ) ;
171
169
172
170
let mut events = EPollEventFlags :: default ( ) ;
You can’t perform that action at this time.
0 commit comments