Skip to content

Commit

Permalink
fixing mostpopular schema & rpc access log
Browse files Browse the repository at this point in the history
  • Loading branch information
jprobinson committed Mar 19, 2016
1 parent f5b781a commit 970f99b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 104 deletions.
123 changes: 36 additions & 87 deletions examples/nyt/mostpopular.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions examples/nyt/mostpopular.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,4 @@ message MostPopularResult {
string published_date = 11;
string source = 12;
uint32 views = 13;
repeated Media media = 14;
}

message Media {
string type = 1;
string subtype = 2;
string caption = 3;
string copyright = 4;
repeated MediaMetadata media_metadata = 5;
}

message MediaMetadata {
string url = 1;
string format = 2;
uint32 height = 3;
uint32 width = 4;
}
2 changes: 1 addition & 1 deletion server/rpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func MonitorRPCRequest() func(ctx context.Context, methodName string, err error)
"name": methodName,
"duration": time.Since(start),
"error": err,
})
}).Info("access")
}
}
}
Expand Down

0 comments on commit 970f99b

Please sign in to comment.