mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Check error when setting static peer
This commit is contained in:
parent
689c3df02d
commit
fbd9c11c3c
1 changed files with 3 additions and 1 deletions
|
@ -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{}
|
||||
|
|
Loading…
Reference in a new issue