Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
segator committed Nov 27, 2019
1 parent 76330b0 commit 69bad6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func ValidateCommand(exitCode int){
}
func Command(name string, arg...string) int{
if isDebug() {
//log.Println(name,arg)
log.Println(name,arg)
return 0
}else{
cmd := exec.Command(name, arg...)
Expand Down
1 change: 1 addition & 0 deletions mesh/SimpleMeshService.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func (meshService *SimpleMeshService) JoinMesh(mesh Mesh,localPeer MeshLocalPee
peersStoredInterface,err :=retry.Do(func() (interface{},*retry.RetryError){
peersStored,err := meshService.repository.FindAll(mesh.MeshID)
if err!=nil {
log.Println("Error found when trying to fetch key", mesh.MeshID,err)
return nil,&retry.RetryError{true,err }
}
return peersStored,nil
Expand Down
2 changes: 1 addition & 1 deletion mesh/publicIPRepository.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func NewPublicIPRepository() PublicIPRepository {

func (repoProvider publicIPRepoProviders) getPublicIP() (string, error) {
numRand := rand.Intn(len(repoProvider.providers) - 0)
client := http.Client{Timeout: time.Duration(5 * time.Second)}
client := http.Client{Transport: repoProvider.transport, Timeout: time.Duration(5 * time.Second)}
resp, err:= client.Get(repoProvider.providers[numRand])
if err!=nil {
return "",err
Expand Down

0 comments on commit 69bad6d

Please sign in to comment.