set go module
This commit is contained in:
parent
7b0cdac7c3
commit
e57d4c191d
3 changed files with 6 additions and 6 deletions
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module ffmpeg-playout
|
||||
module github.com/Garionion/ffmpeg-playout
|
||||
|
||||
go 1.15
|
||||
|
||||
|
|
6
main.go
6
main.go
|
@ -2,9 +2,9 @@ package main
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"ffmpeg-playout/playout"
|
||||
"ffmpeg-playout/store"
|
||||
"fmt"
|
||||
"github.com/Garionion/ffmpeg-playout/playout"
|
||||
"github.com/Garionion/ffmpeg-playout/store"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"github.com/gofiber/fiber/v2/middleware/cors"
|
||||
"github.com/ilyakaznacheev/cleanenv"
|
||||
|
@ -108,7 +108,7 @@ func schedulePlayout(s *store.Store) fiber.Handler {
|
|||
for {
|
||||
select {
|
||||
case ctrlMsg := <-p.ControlChannel:
|
||||
log.Println(ctrlMsg)
|
||||
log.Printf("%d Control Message: %s", p.ID, ctrlMsg)
|
||||
continue
|
||||
case <-time.After(time.Until(p.StartAt)):
|
||||
break Waiting
|
||||
|
|
|
@ -2,8 +2,8 @@ package playout
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"ffmpeg-playout/status"
|
||||
"fmt"
|
||||
"github.com/Garionion/ffmpeg-playout/status"
|
||||
"github.com/grafov/bcast"
|
||||
"log"
|
||||
"net/http"
|
||||
|
@ -137,7 +137,7 @@ func (p *Job) Playout(cfg *Config) {
|
|||
case <-fChannelMember.Read:
|
||||
break ProcessManagement
|
||||
case ctrlMsg := <-p.ControlChannel:
|
||||
log.Println(ctrlMsg)
|
||||
log.Printf("%d Control Message: %s", p.ID, ctrlMsg)
|
||||
break
|
||||
case <-time.After(time.Until(p.StopAt)):
|
||||
break ProcessManagement
|
||||
|
|
Loading…
Reference in a new issue