Skip to content

Commit e116694

Browse files
fix reset orchestrator network capabilities
1 parent 1d2b27b commit e116694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/livepeernode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ func (n *LivepeerNode) UpdateTranscoderSecret(secret string, active bool) {
411411
func (n *LivepeerNode) ResetNetworkCapabilities() {
412412
n.mu.Lock()
413413
defer n.mu.Unlock()
414-
clear(n.NetworkCapabilities.Orchestrators)
414+
n.NetworkCapabilities.Orchestrators = n.NetworkCapabilities.Orchestrators[:0]
415415
}
416416

417417
func (n *LivepeerNode) AddNetworkCapabilities(orch *common.OrchNetworkCapabilities) error {

0 commit comments

Comments
 (0)