Skip to content

Commit

Permalink
revert examples/keyvalue/gen-go/keyvalue/tchan-keyvalue.go
Browse files Browse the repository at this point in the history
  • Loading branch information
datoug committed Jun 15, 2017
1 parent 0b6a02f commit 7d62ef8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions examples/keyvalue/gen-go/keyvalue/tchan-keyvalue.go
Expand Up @@ -45,10 +45,6 @@ func (c *tchanKeyValueServiceClient) Get(ctx thrift.Context, key string) (string
}
success, err := c.client.Call(ctx, c.thriftService, "Get", &args, &resp)
if err == nil && !success {
switch {
default:
err = fmt.Errorf("received no result or unknown exception for Get")
}
}

return resp.GetSuccess(), err
Expand All @@ -61,10 +57,6 @@ func (c *tchanKeyValueServiceClient) GetAll(ctx thrift.Context, keys []string) (
}
success, err := c.client.Call(ctx, c.thriftService, "GetAll", &args, &resp)
if err == nil && !success {
switch {
default:
err = fmt.Errorf("received no result or unknown exception for GetAll")
}
}

return resp.GetSuccess(), err
Expand All @@ -78,10 +70,6 @@ func (c *tchanKeyValueServiceClient) Set(ctx thrift.Context, key string, value s
}
success, err := c.client.Call(ctx, c.thriftService, "Set", &args, &resp)
if err == nil && !success {
switch {
default:
err = fmt.Errorf("received no result or unknown exception for Set")
}
}

return err
Expand Down

0 comments on commit 7d62ef8

Please sign in to comment.