mirror of
https://github.com/pion/webrtc.git
synced 2025-09-27 03:25:58 +08:00
Return object icluding stat id for selected pair
Returning the object with stat id is useful when cross-referencing stats.
This commit is contained in:

committed by
Raja Subramanian

parent
28adb77ee6
commit
a857d57a87
@@ -67,7 +67,7 @@ func (t *ICETransport) GetSelectedCandidatePair() (*ICECandidatePair, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return &ICECandidatePair{Local: &local, Remote: &remote}, nil
|
return NewICECandidatePair(&local, &remote), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewICETransport creates a new NewICETransport.
|
// NewICETransport creates a new NewICETransport.
|
||||||
|
Reference in New Issue
Block a user