diff --git a/cmd/dendrite-demo-yggdrasil/main.go b/cmd/dendrite-demo-yggdrasil/main.go index 84e2dbd03..657477563 100644 --- a/cmd/dendrite-demo-yggdrasil/main.go +++ b/cmd/dendrite-demo-yggdrasil/main.go @@ -62,7 +62,7 @@ func main() { } ygg.SetMulticastEnabled(true) if instancePeer != nil && *instancePeer != "" { - if err := ygg.SetStaticPeer(*instancePeer); err != nil { + if err = ygg.SetStaticPeer(*instancePeer); err != nil { logrus.WithError(err).Error("Failed to set static peer") } }