@@ -120,35 +120,35 @@ impl Subscriber {
120120 self . drop_publish_namespace ( & msg. track_namespace )
121121 }
122122 // TODO SLG - there is no longer a namespace in the error, need to map via request id
123- message:: Subscriber :: PublishNamespaceError ( _msg) => todo ! ( ) , //self.drop_announce(&msg.track_namespace),
123+ message:: Subscriber :: PublishNamespaceError ( _msg) => { } // Not implemented yet - need request id mapping
124124 _ => { }
125125 }
126126
127127 // TODO report dropped messages?
128128 let _ = self . outgoing . push ( msg. into ( ) ) ;
129129 }
130130
131- fn not_implemented_yet ( & self ) -> Result < ( ) , SessionError > {
132- Err ( SessionError :: Serve ( ServeError :: Internal (
133- "Not implemented yet" . to_string ( ) ,
134- ) ) )
135- }
136-
137131 /// Receive a message from the publisher via the control stream.
138132 pub ( super ) fn recv_message ( & mut self , msg : message:: Publisher ) -> Result < ( ) , SessionError > {
139133 let res = match & msg {
140134 message:: Publisher :: PublishNamespace ( msg) => self . recv_publish_namespace ( msg) ,
141135 message:: Publisher :: PublishNamespaceDone ( msg) => self . recv_publish_namespace_done ( msg) ,
142- message:: Publisher :: Publish ( _msg) => self . not_implemented_yet ( ) , // TODO
136+ message:: Publisher :: Publish ( _msg) => Err ( SessionError :: unimplemented ( "PUBLISH" ) ) ,
143137 message:: Publisher :: PublishDone ( msg) => self . recv_publish_done ( msg) ,
144138 message:: Publisher :: SubscribeOk ( msg) => self . recv_subscribe_ok ( msg) ,
145139 message:: Publisher :: SubscribeError ( msg) => self . recv_subscribe_error ( msg) ,
146140 message:: Publisher :: TrackStatusOk ( msg) => self . recv_track_status_ok ( msg) ,
147- message:: Publisher :: TrackStatusError ( _msg) => self . not_implemented_yet ( ) , // TODO
148- message:: Publisher :: FetchOk ( _msg) => self . not_implemented_yet ( ) , // TODO
149- message:: Publisher :: FetchError ( _msg) => self . not_implemented_yet ( ) , // TODO
150- message:: Publisher :: SubscribeNamespaceOk ( _msg) => self . not_implemented_yet ( ) , // TODO
151- message:: Publisher :: SubscribeNamespaceError ( _msg) => self . not_implemented_yet ( ) , // TODO
141+ message:: Publisher :: TrackStatusError ( _msg) => {
142+ Err ( SessionError :: unimplemented ( "TRACK_STATUS_ERROR" ) )
143+ }
144+ message:: Publisher :: FetchOk ( _msg) => Err ( SessionError :: unimplemented ( "FETCH_OK" ) ) ,
145+ message:: Publisher :: FetchError ( _msg) => Err ( SessionError :: unimplemented ( "FETCH_ERROR" ) ) ,
146+ message:: Publisher :: SubscribeNamespaceOk ( _msg) => {
147+ Err ( SessionError :: unimplemented ( "SUBSCRIBE_NAMESPACE_OK" ) )
148+ }
149+ message:: Publisher :: SubscribeNamespaceError ( _msg) => {
150+ Err ( SessionError :: unimplemented ( "SUBSCRIBE_NAMESPACE_ERROR" ) )
151+ }
152152 } ;
153153
154154 if let Err ( SessionError :: Serve ( err) ) = res {
0 commit comments