Skip to content

Commit 352acaa

Browse files
Алексей Романовскийosamingo
authored andcommitted
Fix invalid comments in context.go
1 parent 76f575e commit 352acaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

context.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ func WithRequestID(c context.Context, id *fastjson.RawMessage) context.Context {
2020
return context.WithValue(c, requestIDKey{}, id)
2121
}
2222

23-
// RequestID takes request id from context.
23+
// GetMetadata takes jsonrpc metadata from context.
2424
func GetMetadata(c context.Context) Metadata {
2525
return c.Value(metadataIDKey{}).(Metadata)
2626
}
2727

28-
// WithRequestID adds request id to context.
28+
// WithMetadata adds jsonrpc metadata to context.
2929
func WithMetadata(c context.Context, md Metadata) context.Context {
3030
return context.WithValue(c, metadataIDKey{}, md)
3131
}

0 commit comments

Comments
 (0)