func GetDialPeerTimeout(ctx context.Context) time.Duration {
	if to, ok := ctx.Value(dialPeerTimeoutCtxKey{}).(time.Duration); ok {
		return to
	}
	return DialPeerTimeout
}
func GetDialPeerTimeout(ctx context.Context) time.Duration {
	if to, ok := ctx.Value(dialPeerTimeoutCtxKey{}).(time.Duration); ok {
		return to
	}
	return DialPeerTimeout
}
func GetDialPeerTimeout ( ctx context . Context ) time . Duration { if to , ok := ctx . Value ( dialPeerTimeoutCtxKey { } ) . ( time . Duration ) ; ok { return to } return DialPeerTimeout }
// GetDialPeerTimeout returns the current DialPeer timeout (or the default).
GetDialPeerTimeout returns the current DialPeer timeout ( or the default ) .