blob: baaece37e5ca937bb98acaf786437f51807677be [file]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package utils
import (
"context"
"google.golang.org/grpc/metadata"
ufsUtil "infra/unifiedfleet/app/util"
)
// SetupContext sets up context with namespace
func SetupContext(ctx context.Context, namespace string) context.Context {
md := metadata.Pairs(ufsUtil.Namespace, namespace)
return metadata.NewOutgoingContext(ctx, md)
}