Skip to content

Commit 69bad6d

Browse files
committed
no message
1 parent 76330b0 commit 69bad6d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

cmd/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func ValidateCommand(exitCode int){
2424
}
2525
func Command(name string, arg...string) int{
2626
if isDebug() {
27-
//log.Println(name,arg)
27+
log.Println(name,arg)
2828
return 0
2929
}else{
3030
cmd := exec.Command(name, arg...)

mesh/SimpleMeshService.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ func (meshService *SimpleMeshService) JoinMesh(mesh Mesh,localPeer MeshLocalPee
7474
peersStoredInterface,err :=retry.Do(func() (interface{},*retry.RetryError){
7575
peersStored,err := meshService.repository.FindAll(mesh.MeshID)
7676
if err!=nil {
77+
log.Println("Error found when trying to fetch key", mesh.MeshID,err)
7778
return nil,&retry.RetryError{true,err }
7879
}
7980
return peersStored,nil

mesh/publicIPRepository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func NewPublicIPRepository() PublicIPRepository {
4444

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

0 commit comments

Comments
 (0)