mirror of
https://github.com/google/bumble.git
synced 2026-04-18 00:45:32 +00:00
Fix: Preserve transport metadata
Preserve transport metadata when wrapping with SnoopingTransport
This commit is contained in:
@@ -425,6 +425,10 @@ class SnoopingTransport(Transport):
|
||||
class Source:
|
||||
sink: TransportSink
|
||||
|
||||
@property
|
||||
def metadata(self) -> dict[str, Any]:
|
||||
return getattr(self.source, 'metadata', {})
|
||||
|
||||
def __init__(self, source: TransportSource, snooper: Snooper):
|
||||
self.source = source
|
||||
self.snooper = snooper
|
||||
|
||||
Reference in New Issue
Block a user