-
Notifications
You must be signed in to change notification settings - Fork 932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support json protocol with grpc #437
Conversation
Codecov Report
@@ Coverage Diff @@
## master #437 +/- ##
==========================================
- Coverage 67.41% 66.72% -0.69%
==========================================
Files 174 175 +1
Lines 9261 9283 +22
==========================================
- Hits 6243 6194 -49
- Misses 2416 2484 +68
- Partials 602 605 +3
Continue to review full report at Codecov.
|
- add client conf - support json codec Closes apache#436
f45f679
to
cb259e9
Compare
} | ||
} | ||
clientConf = &defaultClientConfig | ||
if err := clientConf.Validate(); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that the clientConfg always return nil.
} | ||
} | ||
|
||
func (c *ClientConfig) Validate() error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always return nil? Should we check the ContentType?
conn, err := grpc.Dial(url.Location, grpc.WithInsecure(), grpc.WithBlock(), | ||
grpc.WithUnaryInterceptor( | ||
otgrpc.OpenTracingClientInterceptor(tracer, otgrpc.LogPayloads()))) | ||
dailOpts := make([]grpc.DialOption, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dailOpts := make([]grpc.DialOption, 0) | |
dailOpts := make([]grpc.DialOption, 0,n) |
specify capacity as above
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package grpc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add blank line
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package grpc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add blank line
why merge to master? |
Closes #436