Check error when setting static peer

main
Neil Alexander 2020-07-08 15:48:10 +01:00
parent 689c3df02d
commit fbd9c11c3c
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944
1 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,9 @@ func main() {
}
ygg.SetMulticastEnabled(true)
if instancePeer != nil && *instancePeer != "" {
ygg.SetStaticPeer(*instancePeer)
if err := ygg.SetStaticPeer(*instancePeer); err != nil {
logrus.WithError(err).Error("Failed to set static peer")
}
}
cfg := &config.Dendrite{}