Sfoglia il codice sorgente

main: log hex of id

Blake Mizerany 12 anni fa
parent
commit
cf91035a36
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      main.go

+ 1 - 1
main.go

@@ -35,7 +35,7 @@ func main() {
 	}
 
 	if peers.Pick(id) == "" {
-		log.Fatalf("%d=<addr> must be specified in peers", id)
+		log.Fatalf("%#x=<addr> must be specified in peers", id)
 	}
 
 	n := raft.Start(id, peers.Ids(), 10, 1)