Fix up the http broker so it works concurrently and pubs async

This commit is contained in:
Asim
2016-04-28 00:16:11 +01:00
parent 1340e81235
commit 796dba3aac
3 changed files with 126 additions and 16 deletions

View File

@@ -125,6 +125,10 @@ func pingPong(i int) {
func main() {
cmd.Init()
fmt.Println("\n--- Publisher example ---\n")
pub()
fmt.Println("\n--- Call example ---\n")
for i := 0; i < 10; i++ {
call(i)
@@ -136,6 +140,4 @@ func main() {
fmt.Println("\n--- Ping Pong example ---\n")
pingPong(10)
fmt.Println("\n--- Publisher example ---\n")
pub()
}