Skip to content

Commit

Permalink
Merge pull request go-kit#473 from kisPocok/patch-1
Browse files Browse the repository at this point in the history
Fix: rename receiver name
  • Loading branch information
peterbourgon authored Feb 28, 2017
2 parents ca979ac + 82a707e commit 1198575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shipping/booking/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ type loadCargoResponse struct {

func (r loadCargoResponse) error() error { return r.Err }

func makeLoadCargoEndpoint(bs Service) endpoint.Endpoint {
func makeLoadCargoEndpoint(s Service) endpoint.Endpoint {
return func(ctx context.Context, request interface{}) (interface{}, error) {
req := request.(loadCargoRequest)
c, err := bs.LoadCargo(req.ID)
c, err := s.LoadCargo(req.ID)
return loadCargoResponse{Cargo: &c, Err: err}, nil
}
}
Expand Down

0 comments on commit 1198575

Please sign in to comment.