Skip to content

Commit

Permalink
Merge pull request #26 from VictorBjelkholm/fix/example-context
Browse files Browse the repository at this point in the history
fix: ping example to use context
  • Loading branch information
hsanjuan committed Oct 9, 2018
2 parents f78d5a3 + 6018ece commit 416acd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ping/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type PingReply struct {
}
type PingService struct{}

func (t *PingService) Ping(argType PingArgs, replyType *PingReply) error {
func (t *PingService) Ping(ctx context.Context, argType PingArgs, replyType *PingReply) error {
log.Println("Received a Ping call")
replyType.Data = argType.Data
return nil
Expand Down

0 comments on commit 416acd1

Please sign in to comment.