Use mobile.connectPeerID on connect_peerid

This commit is contained in:
Daniel Sanchez Quiros 2022-10-09 20:14:28 -05:00 committed by RichΛrd
parent 1a8543f98f
commit 5403a8fc28
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ func waku_connect(address *C.char, ms C.int) *C.char {
//export waku_connect_peerid
// Connect to known peer by peerID. if ms > 0, cancel the function execution if it takes longer than N milliseconds
func waku_connect_peerid(peerID *C.char, ms C.int) *C.char {
response := mobile.Connect(C.GoString(peerID), int(ms))
response := mobile.ConnectPeerID(C.GoString(peerID), int(ms))
return C.CString(response)
}