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

@ -20,7 +20,7 @@ import (
// version of Snowflake) // version of Snowflake)
type Peers struct { type Peers struct {
Tongue Tongue
BytesLogger BytesLogger BytesLogger
snowflakeChan chan Snowflake snowflakeChan chan Snowflake
activePeers *list.List activePeers *list.List

View file

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