Skip to content

Commit 9755a3d

Browse files
committed
Respond to Doug's comments
1 parent 940a950 commit 9755a3d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

rpc_util.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,19 +190,18 @@ func (EmptyCallOption) before(*callInfo) error { return nil }
190190
func (EmptyCallOption) after(*callInfo, *csAttempt) {}
191191

192192
// StaticMethod returns a CallOption which specifies that a call is being made
193-
// to a method that is static, which the method is known at compile time and
194-
// doesn't change at runtime. This can be used as a signal to stats plugins that
195-
// this method is safe to include as a key to a measurement.
193+
// to a method that is static, which means the method is known at compile time
194+
// and doesn't change at runtime. This can be used as a signal to stats plugins
195+
// that this method is safe to include as a key to a measurement.
196196
func StaticMethod() CallOption {
197197
return StaticMethodCallOption{}
198198
}
199199

200200
// StaticMethodCallOption is a CallOption that specifies that a call comes
201201
// from a static method.
202-
type StaticMethodCallOption struct{}
203-
204-
func (StaticMethodCallOption) before(*callInfo) error { return nil }
205-
func (StaticMethodCallOption) after(*callInfo, *csAttempt) {}
202+
type StaticMethodCallOption struct {
203+
EmptyCallOption
204+
}
206205

207206
// Header returns a CallOptions that retrieves the header metadata
208207
// for a unary RPC.

0 commit comments

Comments
 (0)