Skip to content

Commit c8ec2b5

Browse files
graphaelliyifanzz
authored andcommitted
Fixing typos (grpc-ecosystem#98)
1 parent d3bbb1b commit c8ec2b5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tags/fieldextractor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func CodeGenRequestFieldExtractor(fullMethod string, req interface{}) map[string
3232
return nil
3333
}
3434

35-
// TagedRequestFiledExtractor is a function that relies on Go struct tags to export log fields from requests.
35+
// TagBasedRequestFieldExtractor is a function that relies on Go struct tags to export log fields from requests.
3636
// These are usualy coming from a protoc-plugin, such as Gogo protobuf.
3737
//
3838
// message Metadata {

tags/fieldextractor_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func TestCodeGenRequestLogFieldExtractor_ManualIsDeclared(t *testing.T) {
2020
require.EqualValues(t, valMap, map[string]interface{}{"value": "my_value"})
2121
}
2222

23-
func TestTagedRequestFiledExtractor_PingRequest(t *testing.T) {
23+
func TestTaggedRequestFiledExtractor_PingRequest(t *testing.T) {
2424
req := &pb_gogotestproto.PingRequest{
2525
Ping: &pb_gogotestproto.Ping{
2626
Id: &pb_gogotestproto.PingId{
@@ -37,7 +37,7 @@ func TestTagedRequestFiledExtractor_PingRequest(t *testing.T) {
3737
assert.EqualValues(t, []string{"tagone", "tagtwo"}, valMap["meta_tags"])
3838
}
3939

40-
func TestTagedRequestFiledExtractor_PongRequest(t *testing.T) {
40+
func TestTaggedRequestFiledExtractor_PongRequest(t *testing.T) {
4141
req := &pb_gogotestproto.PongRequest{
4242
Pong: &pb_gogotestproto.Pong{
4343
Id: "some_id",

tags/interceptors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (w *wrappedStream) Context() context.Context {
5656

5757
func (w *wrappedStream) RecvMsg(m interface{}) error {
5858
err := w.ServerStream.RecvMsg(m)
59-
// We only do log fields extraction on the single-reqest of a server-side stream.
59+
// We only do log fields extraction on the single-request of a server-side stream.
6060
if !w.info.IsClientStream || w.opts.requestFieldsFromInitial && w.initial {
6161
w.initial = false
6262

0 commit comments

Comments
 (0)