Browse Source

chan directions

dbz 7 years ago
parent
commit
3879f1c41b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      cmd/direttoforo/main.go
  2. 1 1
      liquidsoap/spawn.go

+ 1 - 1
cmd/direttoforo/main.go

@@ -9,7 +9,7 @@ import (
 	"time"
 )
 
-func outUI(output chan liquidsoap.Output) {
+func outUI(output <-chan liquidsoap.Output) {
 	for msg := range output {
 		if msg.Level <= 2 {
 			fmt.Println(msg)

+ 1 - 1
liquidsoap/spawn.go

@@ -26,7 +26,7 @@ func (e *End) Success() bool {
 //
 // RunLiquidsoap is an async function, which provides channels as feedback and needs a channel to ask for its
 // termination
-func RunLiquidsoap(configfile string, kill <-chan struct{}) (chan Output, chan End, error) {
+func RunLiquidsoap(configfile string, kill <-chan struct{}) (<-chan Output, <-chan End, error) {
 	out := make(chan Output)
 	exit := make(chan End, 1)
 	cmd := exec.Command("liquidsoap", "--enable-telnet", configfile)