mirror of
https://github.com/pion/ice.git
synced 2025-10-24 16:00:39 +08:00
Replace interface{} with any type alias
This change maintains full backward compatibility while adopting modern Go type alias conventions for better code clarity. Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
This commit is contained in:
@@ -206,7 +206,7 @@ func TestActiveTCP_NonBlocking(t *testing.T) {
|
||||
require.NoError(t, bAgent.Close())
|
||||
}()
|
||||
|
||||
isConnected := make(chan interface{})
|
||||
isConnected := make(chan any)
|
||||
err = aAgent.OnConnectionStateChange(func(c ConnectionState) {
|
||||
if c == ConnectionStateConnected {
|
||||
close(isConnected)
|
||||
@@ -269,7 +269,7 @@ func TestActiveTCP_Respect_NetworkTypes(t *testing.T) {
|
||||
require.NoError(t, bAgent.Close())
|
||||
}()
|
||||
|
||||
isConnected := make(chan interface{})
|
||||
isConnected := make(chan any)
|
||||
err = aAgent.OnConnectionStateChange(func(c ConnectionState) {
|
||||
if c == ConnectionStateConnected {
|
||||
close(isConnected)
|
||||
|
||||
Reference in New Issue
Block a user