Skip to content

Commit

Permalink
Fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
joe94 committed Sep 23, 2020
1 parent 74cbfcf commit 8a1c98e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion store/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func newDeleteItemHandler(s S) Handler {

func newGetAllItemsHandler(s S) Handler {
return kithttp.NewServer(
newGetAllItemsEndpoint(s)
newGetAllItemsEndpoint(s),
decodeGetAllItemsRequest,
encodeGetAllItemsResponse,
kithttp.ServerErrorEncoder(encodeError),
Expand Down
2 changes: 1 addition & 1 deletion store/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func decodeGetAllItemsRequest(ctx context.Context, r *http.Request) (interface{}
}

func encodeGetAllItemsResponse(ctx context.Context, rw http.ResponseWriter, response interface{}) error {
items := value.(map[string]OwnableItem)
items := response.(map[string]OwnableItem)
payload := map[string]model.Item{}
for k, value := range items {
if value.TTL <= 0 {
Expand Down

0 comments on commit 8a1c98e

Please sign in to comment.