Currently the send_metadata fn on a ServerSession takes the stream metadata as an Rc which seems like an odd design choice when it could easily take &StreamMetadata. This is causing me to need to create an Rc whenever I call this as I don't already have the metadata in an Rc and prevents me from using something like an Arc
Currently the
send_metadata
fn on aServerSession
takes the stream metadata as an Rc which seems like an odd design choice when it could easily take&StreamMetadata
. This is causing me to need to create an Rc whenever I call this as I don't already have the metadata in an Rc and prevents me from using something like an Archttps://github.com/KallDrexx/rust-media-libs/blob/682fffea0b2f17e3dc2d1906cee93f741ac154f3/rtmp/src/sessions/server/mod.rs#L219
Happy to submit a PR changing this if there are no objections