File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -190,19 +190,18 @@ func (EmptyCallOption) before(*callInfo) error { return nil }
190190func (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.
196196func 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.
You can’t perform that action at this time.
0 commit comments