dbz 7 лет назад
Родитель
Сommit
3879f1c41b
2 измененных файлов с 2 добавлено и 2 удалено
  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"
 	"time"
 )
 )
 
 
-func outUI(output chan liquidsoap.Output) {
+func outUI(output <-chan liquidsoap.Output) {
 	for msg := range output {
 	for msg := range output {
 		if msg.Level <= 2 {
 		if msg.Level <= 2 {
 			fmt.Println(msg)
 			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
 // RunLiquidsoap is an async function, which provides channels as feedback and needs a channel to ask for its
 // termination
 // 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)
 	out := make(chan Output)
 	exit := make(chan End, 1)
 	exit := make(chan End, 1)
 	cmd := exec.Command("liquidsoap", "--enable-telnet", configfile)
 	cmd := exec.Command("liquidsoap", "--enable-telnet", configfile)