blob: 890978f44ef7323c4e09bd9af7d793f8381ac0cf [file] [log] [blame]
// Copyright 2018 The Goma 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 server
import (
// DefaultDialOption is default dial option to record opencensus stats and traces.
func DefaultDialOption() []grpc.DialOption {
return []grpc.DialOption{
Time: 10 * time.Second,
// DialContext dials to addr with default dial options.
func DialContext(ctx context.Context, addr string, opts ...grpc.DialOption) (*grpc.ClientConn, error) {
opts = append(opts, DefaultDialOption()...)
return grpc.DialContext(ctx, addr, opts...)