mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Use lowercase variable names in copyLoop.
This commit is contained in:
parent
bc5498cb4b
commit
57d4b0b5bd
2 changed files with 6 additions and 6 deletions
|
@ -48,17 +48,17 @@ func Handler(socks SocksConnector, snowflakes SnowflakeCollector) error {
|
|||
|
||||
// Exchanges bytes between two ReadWriters.
|
||||
// (In this case, between a SOCKS and WebRTC connection.)
|
||||
func copyLoop(SOCKS, WebRTC io.ReadWriter) {
|
||||
func copyLoop(socks, webRTC io.ReadWriter) {
|
||||
var wg sync.WaitGroup
|
||||
wg.Add(2)
|
||||
go func() {
|
||||
if _, err := io.Copy(SOCKS, WebRTC); err != nil {
|
||||
if _, err := io.Copy(socks, webRTC); err != nil {
|
||||
log.Printf("copying WebRTC to SOCKS resulted in error: %v", err)
|
||||
}
|
||||
wg.Done()
|
||||
}()
|
||||
go func() {
|
||||
if _, err := io.Copy(WebRTC, SOCKS); err != nil {
|
||||
if _, err := io.Copy(webRTC, socks); err != nil {
|
||||
log.Printf("copying SOCKS to WebRTC resulted in error: %v", err)
|
||||
}
|
||||
wg.Done()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue