]> Sergey Matveev's repositories - btrtrc.git/commit
Pass client logger to anacrolix/go-libutp sockets (#722)
authorFIGBERT <figbert@figbert.com>
Tue, 15 Feb 2022 05:18:32 +0000 (21:18 -0800)
committerGitHub <noreply@github.com>
Tue, 15 Feb 2022 05:18:32 +0000 (16:18 +1100)
commit7d41b9b21ceee75b45137be01a833621368846e2
tree87ac7b3c517e8aa837c3e77c149d95695983c440
parente3d08999e1dd538f6a42a97f946fbaf1cbff2303
Pass client logger to anacrolix/go-libutp sockets (#722)

* Update anacrolix/go-libutp (v1.1.0 -> v1.2.0)

* Pass client logger to anacrolix/go-libutp

* Pass logger instead of option

The project now compiles properly when CGO is not enabled.

Additionally, the new argument (now log.Logger instead of
utp.NewSocketOpt) is now required. The tests have been updated to match
this change, and now pass logger.Default to NewUtpSocket.

* Correct function signature of NewUtpSocket
client.go
client_test.go
go.mod
go.sum
network_test.go
socket.go
utp_go.go
utp_libutp.go
utp_test.go