Skip to content

Commit

Permalink
fix: should use unbuffered channels now, config file can change in size
Browse files Browse the repository at this point in the history
  • Loading branch information
biodrone committed Mar 27, 2024
1 parent d3b398f commit 9b44e3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streamdl.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ func main() {
var ticker = time.NewTicker(time.Second * time.Duration(*tickTime))
var config []Config
confErr := yaml.Unmarshal(readConfig(*confLoc), &config)
control := make(chan bool, len(config[0].Streamers)) //might need to move these into the main loop
response := make(chan bool, len(config[0].Streamers))
control := make(chan bool)
response := make(chan bool)
ll, err := log.ParseLevel(os.Getenv("LOG_LEVEL"))

signal.Notify(c, os.Interrupt, syscall.SIGTERM, syscall.SIGINT)
Expand Down

0 comments on commit 9b44e3d

Please sign in to comment.