File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ import (
18
18
19
19
func main () {
20
20
// load .env
21
- _ = godotenv .Load (".env" , "sim.env" )
21
+ _ = godotenv .Load (".env" )
22
+ _ = godotenv .Load ("sim.env" )
22
23
23
24
// init the simulator
24
25
ctx := context .Background ()
Original file line number Diff line number Diff line change @@ -54,16 +54,16 @@ type PSMon struct {
54
54
55
55
func NewPSMon (endpoint string , newOtelProvider NewOtelProviderFn ) * PSMon {
56
56
57
+ // load .env
58
+ _ = godotenv .Load (".env" )
59
+
57
60
// load bench.env, but not in sim
58
61
isSim := strings .HasSuffix (os .Args [0 ], "sim" ) ||
59
62
strings .HasSuffix (os .Args [0 ], "sim_go" )
60
63
if ! isSim {
61
- _ = godotenv .Load (".env" , " bench.env" )
64
+ _ = godotenv .Load ("bench.env" )
62
65
}
63
66
64
- // load .env
65
- _ = godotenv .Load (".env" )
66
-
67
67
ep := endpoint
68
68
if ep == "" {
69
69
ep = OtelEndpoint
You can’t perform that action at this time.
0 commit comments