Skip to content

Commit

Permalink
Added warning while parsing timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoAndreSa committed Mar 11, 2020
1 parent 3a7f339 commit 5564657
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/constants.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package libunlynx

import (
"go.dedis.ch/onet/v3/log"
"os"
"sync"
"time"
Expand All @@ -12,6 +13,8 @@ func init() {
tmp, err := time.ParseDuration(os.Getenv("MEDCO_TIMEOUT"))
if err == nil {
TIMEOUT = tmp
} else {
log.Warn("Couldn't parse MEDCO_TIMEOUT")
}
}

Expand Down

0 comments on commit 5564657

Please sign in to comment.