@@ -73,7 +73,7 @@ func (c *MyServiceClient) Ping(ctx context.Context) (error) {
73
73
fbthriftReq := & reqMyServicePing {
74
74
}
75
75
fbthriftResp := newRespMyServicePing ()
76
- fbthriftErr := c .ch .Call (ctx , "ping" , fbthriftReq , fbthriftResp )
76
+ fbthriftErr := c .ch .SendRequestResponse (ctx , "ping" , fbthriftReq , fbthriftResp )
77
77
if fbthriftErr != nil {
78
78
return fbthriftErr
79
79
} else if fbthriftResp .MyExcept != nil {
@@ -86,7 +86,7 @@ func (c *MyServiceClient) GetRandomData(ctx context.Context) (string, error) {
86
86
fbthriftReq := & reqMyServiceGetRandomData {
87
87
}
88
88
fbthriftResp := newRespMyServiceGetRandomData ()
89
- fbthriftErr := c .ch .Call (ctx , "getRandomData" , fbthriftReq , fbthriftResp )
89
+ fbthriftErr := c .ch .SendRequestResponse (ctx , "getRandomData" , fbthriftReq , fbthriftResp )
90
90
if fbthriftErr != nil {
91
91
return "" , fbthriftErr
92
92
}
@@ -98,7 +98,7 @@ func (c *MyServiceClient) HasDataById(ctx context.Context, id int64) (bool, erro
98
98
Id : id ,
99
99
}
100
100
fbthriftResp := newRespMyServiceHasDataById ()
101
- fbthriftErr := c .ch .Call (ctx , "hasDataById" , fbthriftReq , fbthriftResp )
101
+ fbthriftErr := c .ch .SendRequestResponse (ctx , "hasDataById" , fbthriftReq , fbthriftResp )
102
102
if fbthriftErr != nil {
103
103
return false , fbthriftErr
104
104
}
@@ -110,7 +110,7 @@ func (c *MyServiceClient) GoGetDataById(ctx context.Context, id int64) (string,
110
110
Id : id ,
111
111
}
112
112
fbthriftResp := newRespMyServiceGoGetDataById ()
113
- fbthriftErr := c .ch .Call (ctx , "getDataById" , fbthriftReq , fbthriftResp )
113
+ fbthriftErr := c .ch .SendRequestResponse (ctx , "getDataById" , fbthriftReq , fbthriftResp )
114
114
if fbthriftErr != nil {
115
115
return "" , fbthriftErr
116
116
}
@@ -123,7 +123,7 @@ func (c *MyServiceClient) PutDataById(ctx context.Context, id int64, data string
123
123
Data : data ,
124
124
}
125
125
fbthriftResp := newRespMyServicePutDataById ()
126
- fbthriftErr := c .ch .Call (ctx , "putDataById" , fbthriftReq , fbthriftResp )
126
+ fbthriftErr := c .ch .SendRequestResponse (ctx , "putDataById" , fbthriftReq , fbthriftResp )
127
127
if fbthriftErr != nil {
128
128
return fbthriftErr
129
129
}
@@ -135,14 +135,14 @@ func (c *MyServiceClient) LobDataById(ctx context.Context, id int64, data string
135
135
Id : id ,
136
136
Data : data ,
137
137
}
138
- return c .ch .Oneway (ctx , "lobDataById" , fbthriftReq )
138
+ return c .ch .SendRequestNoResponse (ctx , "lobDataById" , fbthriftReq )
139
139
}
140
140
141
141
func (c * MyServiceClient ) GoDoNothing (ctx context.Context ) (error ) {
142
142
fbthriftReq := & reqMyServiceGoDoNothing {
143
143
}
144
144
fbthriftResp := newRespMyServiceGoDoNothing ()
145
- fbthriftErr := c .ch .Call (ctx , "doNothing" , fbthriftReq , fbthriftResp )
145
+ fbthriftErr := c .ch .SendRequestResponse (ctx , "doNothing" , fbthriftReq , fbthriftResp )
146
146
if fbthriftErr != nil {
147
147
return fbthriftErr
148
148
}
@@ -614,7 +614,7 @@ func (c *MyServicePrioParentClient) Ping(ctx context.Context) (error) {
614
614
fbthriftReq := & reqMyServicePrioParentPing {
615
615
}
616
616
fbthriftResp := newRespMyServicePrioParentPing ()
617
- fbthriftErr := c .ch .Call (ctx , "ping" , fbthriftReq , fbthriftResp )
617
+ fbthriftErr := c .ch .SendRequestResponse (ctx , "ping" , fbthriftReq , fbthriftResp )
618
618
if fbthriftErr != nil {
619
619
return fbthriftErr
620
620
}
@@ -625,7 +625,7 @@ func (c *MyServicePrioParentClient) Pong(ctx context.Context) (error) {
625
625
fbthriftReq := & reqMyServicePrioParentPong {
626
626
}
627
627
fbthriftResp := newRespMyServicePrioParentPong ()
628
- fbthriftErr := c .ch .Call (ctx , "pong" , fbthriftReq , fbthriftResp )
628
+ fbthriftErr := c .ch .SendRequestResponse (ctx , "pong" , fbthriftReq , fbthriftResp )
629
629
if fbthriftErr != nil {
630
630
return fbthriftErr
631
631
}
@@ -828,7 +828,7 @@ func (c *MyServicePrioChildClient) Pang(ctx context.Context) (error) {
828
828
fbthriftReq := & reqMyServicePrioChildPang {
829
829
}
830
830
fbthriftResp := newRespMyServicePrioChildPang ()
831
- fbthriftErr := c .ch .Call (ctx , "pang" , fbthriftReq , fbthriftResp )
831
+ fbthriftErr := c .ch .SendRequestResponse (ctx , "pang" , fbthriftReq , fbthriftResp )
832
832
if fbthriftErr != nil {
833
833
return fbthriftErr
834
834
}
@@ -943,7 +943,7 @@ func (c *BadServiceClient) Bar(ctx context.Context) (int32, error) {
943
943
fbthriftReq := & reqBadServiceBar {
944
944
}
945
945
fbthriftResp := newRespBadServiceBar ()
946
- fbthriftErr := c .ch .Call (ctx , "bar" , fbthriftReq , fbthriftResp )
946
+ fbthriftErr := c .ch .SendRequestResponse (ctx , "bar" , fbthriftReq , fbthriftResp )
947
947
if fbthriftErr != nil {
948
948
return 0 , fbthriftErr
949
949
}
@@ -1090,7 +1090,7 @@ func (c *FooBarBazServiceClient) FooStructured(ctx context.Context) (error) {
1090
1090
fbthriftReq := & reqFooBarBazServiceFooStructured {
1091
1091
}
1092
1092
fbthriftResp := newRespFooBarBazServiceFooStructured ()
1093
- fbthriftErr := c .ch .Call (ctx , "foo" , fbthriftReq , fbthriftResp )
1093
+ fbthriftErr := c .ch .SendRequestResponse (ctx , "foo" , fbthriftReq , fbthriftResp )
1094
1094
if fbthriftErr != nil {
1095
1095
return fbthriftErr
1096
1096
}
@@ -1101,7 +1101,7 @@ func (c *FooBarBazServiceClient) BarNonStructured(ctx context.Context) (error) {
1101
1101
fbthriftReq := & reqFooBarBazServiceBarNonStructured {
1102
1102
}
1103
1103
fbthriftResp := newRespFooBarBazServiceBarNonStructured ()
1104
- fbthriftErr := c .ch .Call (ctx , "bar" , fbthriftReq , fbthriftResp )
1104
+ fbthriftErr := c .ch .SendRequestResponse (ctx , "bar" , fbthriftReq , fbthriftResp )
1105
1105
if fbthriftErr != nil {
1106
1106
return fbthriftErr
1107
1107
}
@@ -1112,7 +1112,7 @@ func (c *FooBarBazServiceClient) Baz(ctx context.Context) (error) {
1112
1112
fbthriftReq := & reqFooBarBazServiceBaz {
1113
1113
}
1114
1114
fbthriftResp := newRespFooBarBazServiceBaz ()
1115
- fbthriftErr := c .ch .Call (ctx , "baz" , fbthriftReq , fbthriftResp )
1115
+ fbthriftErr := c .ch .SendRequestResponse (ctx , "baz" , fbthriftReq , fbthriftResp )
1116
1116
if fbthriftErr != nil {
1117
1117
return fbthriftErr
1118
1118
}
0 commit comments