mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-13 21:57:29 +08:00
feat: add guarded webrtc node transport
This commit is contained in:
@@ -79,6 +79,13 @@ func (al *AgentLoop) SetConfigPath(path string) {
|
||||
}
|
||||
}
|
||||
|
||||
func (al *AgentLoop) SetNodeP2PTransport(t nodes.Transport) {
|
||||
if al == nil || al.nodeRouter == nil {
|
||||
return
|
||||
}
|
||||
al.nodeRouter.P2P = t
|
||||
}
|
||||
|
||||
// StartupCompactionReport provides startup memory/session maintenance stats.
|
||||
type StartupCompactionReport struct {
|
||||
TotalSessions int `json:"total_sessions"`
|
||||
|
||||
Reference in New Issue
Block a user