mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
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:
parent
65ecb798ca
commit
d376d7036b
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ import (
|
|||
// version of Snowflake)
|
||||
type Peers struct {
|
||||
Tongue
|
||||
BytesLogger
|
||||
BytesLogger BytesLogger
|
||||
|
||||
snowflakeChan chan Snowflake
|
||||
activePeers *list.List
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue