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