TBR discovery: Fix compiler error
Close paren in the wrong place
Change-Id: I8e4cc69f7ac873f682d2c415053411c2fceddd86
diff --git a/go/src/vanadium/discovery/discovery.go b/go/src/vanadium/discovery/discovery.go
index a9cd6b8..1a829ac 100644
--- a/go/src/vanadium/discovery/discovery.go
+++ b/go/src/vanadium/discovery/discovery.go
@@ -43,7 +43,7 @@
// will be in its own process.
ctx, shutdown := v23.Init()
- if len(c.Args() <= 2) {
+ if len(c.Args()) <= 2 {
ctx.Fatalf("Not enough arguments passed to discovery.mojo. Given: %v. Pass a name to advertise, followed by 1+ discovery protocols.", c)
}
// TODO(bjornick): Change this to use the factory to determine which protocols to use.