MCPcopy Create free account
hub / github.com/cortexproject/cortex / injectShardInfoIntoContext

Function injectShardInfoIntoContext

pkg/querier/parquet_queryable.go:683–685  ·  view source on GitHub ↗
(ctx context.Context, si *storepb.ShardInfo)

Source from the content-addressed store, hash-verified

681)
682
683func injectShardInfoIntoContext(ctx context.Context, si *storepb.ShardInfo) context.Context {
684 return context.WithValue(ctx, shardInfoCtxKey, si)
685}
686
687func extractShardInfoFromContext(ctx context.Context) (*storepb.ShardInfo, bool) {
688 if si := ctx.Value(shardInfoCtxKey); si != nil {

Calls

no outgoing calls