Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1150)

Side by Side Diff: client/cmd/isolated/common.go

Issue 1159563002: Move retry and lhttp packages from client/internal to common/. (Closed) Base URL: git@github.com:luci/luci-go@master
Patch Set: move-retry-http Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « client/cmd/isolate/common.go ('k') | client/cmd/swarming/common.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package main 5 package main
6 6
7 import ( 7 import (
8 "errors" 8 "errors"
9 "io" 9 "io"
10 "io/ioutil" 10 "io/ioutil"
11 "log" 11 "log"
12 "os" 12 "os"
13 13
14 "github.com/luci/luci-go/client/internal/lhttp"
15 "github.com/luci/luci-go/client/internal/tracer" 14 "github.com/luci/luci-go/client/internal/tracer"
15 "github.com/luci/luci-go/common/lhttp"
16 "github.com/maruel/subcommands" 16 "github.com/maruel/subcommands"
17 ) 17 )
18 18
19 type commonFlags struct { 19 type commonFlags struct {
20 quiet bool 20 quiet bool
21 verbose bool 21 verbose bool
22 tracePath string 22 tracePath string
23 traceFile io.Closer 23 traceFile io.Closer
24 } 24 }
25 25
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 if s, err := lhttp.URLToHTTPS(c.serverURL); err != nil { 79 if s, err := lhttp.URLToHTTPS(c.serverURL); err != nil {
80 return err 80 return err
81 } else { 81 } else {
82 c.serverURL = s 82 c.serverURL = s
83 } 83 }
84 if c.namespace == "" { 84 if c.namespace == "" {
85 return errors.New("-namespace must be specified.") 85 return errors.New("-namespace must be specified.")
86 } 86 }
87 return nil 87 return nil
88 } 88 }
OLDNEW
« no previous file with comments | « client/cmd/isolate/common.go ('k') | client/cmd/swarming/common.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698