mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20: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)
|
// 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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue