thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duru Can Celasun (Jira)" <>
Subject [jira] [Commented] (THRIFT-5269) Contexts are missing from GO generated code
Date Mon, 24 Aug 2020 14:56:00 GMT


Duru Can Celasun commented on THRIFT-5269:

Missing where? There are many places where contexts are used. The generated service looks
fine to me:
type Calculator interface {
  //Ahh, now onto the cool part, defining a service. Services just need a name
  //and can optionally inherit from another service using the extends keyword.  // A method
definition looks like C code. It has a return type, arguments,
  // and optionally a list of exceptions that it may throw. Note that argument
  // lists and exception lists are specified using the exact same syntax as
  // field lists in struct or exception definitions.
  Ping(ctx context.Context) (err error)
  // Parameters:
  //  - Num1
  //  - Num2
  Add(ctx context.Context, num1 int32, num2 int32) (r int32, err error)
  // Parameters:
  //  - Logid
  //  - W
  Calculate(ctx context.Context, logid int32, w *Work) (r int32, err error)
  // This method has a oneway modifier. That means the client only makes
  // a request and does not listen for any response at all. Oneway methods
  // must be void.
  Zip(ctx context.Context) (err error)

> Contexts are missing from GO generated code
> -------------------------------------------
>                 Key: THRIFT-5269
>                 URL:
>             Project: Thrift
>          Issue Type: Bug
>          Components: Go - Compiler
>    Affects Versions: 0.13.0
>         Environment: ubuntu, thrift 0.13.0, go 1.14.6
>            Reporter: Paolo Elefante
>            Priority: Blocker
> Hi,
> [Contexts|] are missing from golang generated
> I'm on ubuntu, thrift 0.13.0 and go 1.14.6.
> To reproduce the fault just follow the Go Tutorial ([link|])
> Thanks. 
> BR, Paolo

This message was sent by Atlassian Jira

View raw message