Make WebRTCPeer and Peers not inherit the methods of BytesLogger.

You would have been able to do, for example,
snowflake.(*WebRTCPeer).AddInbound(...).
This commit is contained in:
David Fifield 2020-04-23 21:08:01 -06:00
parent 65ecb798ca
commit d376d7036b
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@ type WebRTCPeer struct {
lock sync.Mutex // Synchronization for DataChannel destruction
once sync.Once // Synchronization for PeerConnection destruction
BytesLogger
BytesLogger BytesLogger
}
// Construct a WebRTC PeerConnection.