Skip to content

Commit 69ca257

Browse files
Mod default port to 9171
1 parent a117f68 commit 69ca257

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ type Config struct {
2828
// Init populates the Config struct based on environmental runtime configuration
2929
func Init() Config {
3030

31+
listenPort := cfg.GetEnv("LISTEN_PORT", "9171")
32+
os.Setenv("LISTEN_PORT", listenPort)
3133
ac := cfg.Init()
3234
url := cfg.GetEnv("API_URL", "https://api.github.com")
3335
repos := os.Getenv("REPOS")

exporter/gather.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ func getPRs(e *Exporter, url string, data *[]Pull) {
117117
if err != nil {
118118
log.Errorf("Unable to obtain pull requests from API, Error: %s", err)
119119
}
120-
fmt.Println(&data)
121120

122121
json.Unmarshal(pullsResponse[0].body, &data)
123122
}

0 commit comments

Comments
 (0)