mirror of https://bitbucket.org/ausocean/av.git
revid: removed restarter interface from senders.go as not required anymore
This commit is contained in:
parent
b9e7c3ff8c
commit
2bd17d0296
|
@ -123,12 +123,6 @@ func extractMeta(r string, log func(lvl int8, msg string, args ...interface{}))
|
|||
return nil
|
||||
}
|
||||
|
||||
// restart is an optional interface for loadSenders that
|
||||
// can restart their connection.
|
||||
type restarter interface {
|
||||
restart() error
|
||||
}
|
||||
|
||||
// fileSender implements loadSender for a local file destination.
|
||||
type fileSender struct {
|
||||
file *os.File
|
||||
|
@ -208,8 +202,6 @@ type rtmpSender struct {
|
|||
data []byte
|
||||
}
|
||||
|
||||
var _ restarter = (*rtmpSender)(nil)
|
||||
|
||||
func newRtmpSender(url string, timeout uint, retries int, log func(lvl int8, msg string, args ...interface{})) (*rtmpSender, error) {
|
||||
var conn *rtmp.Conn
|
||||
var err error
|
||||
|
|
Loading…
Reference in New Issue