Package list golang-github-go-kit-kit / 9479884
Fix: rename receiver name Receiver name `bs` should be consistent with previous receiver name `s` for Service. David Schneidhoffer authored 4 years ago GitHub committed 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4141
4242 func (r loadCargoResponse) error() error { return r.Err }
4343
44 func makeLoadCargoEndpoint(bs Service) endpoint.Endpoint {
44 func makeLoadCargoEndpoint(s Service) endpoint.Endpoint {
4545 return func(ctx context.Context, request interface{}) (interface{}, error) {
4646 req := request.(loadCargoRequest)
47 c, err := bs.LoadCargo(req.ID)
47 c, err := s.LoadCargo(req.ID)
4848 return loadCargoResponse{Cargo: &c, Err: err}, nil
4949 }
5050 }