[tor-commits] [snowflake/master] Make WebRTCPeer and Peers not inherit the methods of BytesLogger.
dcf at torproject.org
dcf at torproject.org
Fri Apr 24 16:27:06 UTC 2020
commit d376d7036bdee70797dbda50af34d5930d45dadd
Author: David Fifield <david at bamsoftware.com>
Date: Thu Apr 23 21:08:01 2020 -0600
Make WebRTCPeer and Peers not inherit the methods of BytesLogger.
You would have been able to do, for example,
snowflake.(*WebRTCPeer).AddInbound(...).
---
client/lib/peers.go | 2 +-
client/lib/webrtc.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/client/lib/peers.go b/client/lib/peers.go
index d385971..f70905e 100644
--- a/client/lib/peers.go
+++ b/client/lib/peers.go
@@ -20,7 +20,7 @@ import (
// version of Snowflake)
type Peers struct {
Tongue
- BytesLogger
+ BytesLogger BytesLogger
snowflakeChan chan Snowflake
activePeers *list.List
diff --git a/client/lib/webrtc.go b/client/lib/webrtc.go
index 3e20549..589bbfa 100644
--- a/client/lib/webrtc.go
+++ b/client/lib/webrtc.go
@@ -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.
More information about the tor-commits
mailing list