[client] Merge conntype package into peer

The conntype package held only ConnPriority and its constants and was
imported solely by peer. Move it into the peer package as priority.go
and drop the conntype. qualifier from conn.go, event.go and worker_ice.go.
This commit is contained in:
Zoltan Papp
2026-08-05 16:14:11 +02:00
committed by Zoltán Papp
parent a3aabda1e9
commit fda00c06c2
4 changed files with 24 additions and 27 deletions
+1 -2
View File
@@ -5,7 +5,6 @@ import (
"github.com/pion/ice/v4"
"github.com/netbirdio/netbird/client/internal/peer/conntype"
"github.com/netbirdio/netbird/route"
)
@@ -35,7 +34,7 @@ type evRemoteCandidate struct {
}
type evICEReady struct {
priority conntype.ConnPriority
priority ConnPriority
info ICEConnInfo
}