Skip to content

Commit

Permalink
Merge branch 'master' into v1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy Baron authored Oct 20, 2019
2 parents f6ae8c5 + eb32401 commit ce8face
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/vacation_app/cmd/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ func HandleBookingComplete(invocation gbus.Invocation, message *gbus.BusMessage)
bookingComplete := message.Payload.(*messages.BookingComplete)
if bookingComplete.Success {
fmt.Printf("booking completed successfully\n")

} else {
fmt.Printf("failed to book vacation\n")
}
Expand Down
4 changes: 3 additions & 1 deletion examples/vacation_app/cmd/flights.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import (
"bufio"
"fmt"
"os"

"vacation_app/messages"
"vacation_app/trace"

log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/wework/grabbit/gbus"
)


var runFlightsgServiceCmd = &cobra.Command{
Use: "flights",
Short: "Run the flights service",
Expand All @@ -28,6 +29,7 @@ var runFlightsgServiceCmd = &cobra.Command{
gb := createBus(svcName)

gb.HandleMessage(messages.BookFlightsCmd{}, HandleBookFlightCommand)

gb.HandleMessage(messages.CancelFlightsCmd{}, HandleCancelFlightCommand)

gb.Start()
Expand Down

0 comments on commit ce8face

Please sign in to comment.