Skip to content

Commit

Permalink
Fix: Preserve transport metadata
Browse files Browse the repository at this point in the history
Preserve transport metadata when wrapping with SnoopingTransport
  • Loading branch information
SilverBzH committed May 28, 2024
1 parent e34f6b5 commit 28e6229
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bumble/transport/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,10 @@ def create_with(
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
Expand Down

0 comments on commit 28e6229

Please sign in to comment.