Use AuthenticatedConnect for dial

This commit is contained in:
Neil Alexander 2020-11-30 13:32:06 +00:00
parent d8d05ad82c
commit 9ab026d8d4
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -106,7 +106,7 @@ func main() {
return
}
if _, err := pSwitch.Connect(parent, pineconeTypes.PublicKey{}, "static"); err != nil {
if _, err := pSwitch.AuthenticatedConnect(parent, "static"); err != nil {
logrus.WithError(err).Errorf("Failed to connect Pinecone static peer to switch")
}
}(*instancePeer)