revid: improved some naming and revmoed uneeded const

This commit is contained in:
saxon 2018-11-26 00:40:18 +10:30
parent 98eb2c64e8
commit 227f25a3fb
1 changed files with 5 additions and 10 deletions

View File

@ -74,11 +74,6 @@ const (
pkg = "revid:" pkg = "revid:"
) )
const (
out1 = 0
out2 = 1
)
// Log Types // Log Types
const ( const (
Error = "Error" Error = "Error"
@ -204,9 +199,9 @@ func (r *Revid) reset(config Config) error {
} }
r.config = config r.config = config
for _, destination := range r.destination { for _, dest := range r.destination {
if destination != nil { if dest != nil {
err = destination.close() err = dest.close()
if err != nil { if err != nil {
return err return err
} }
@ -369,8 +364,8 @@ loop:
count += chunk.Len() count += chunk.Len()
r.config.Logger.Log(smartlogger.Debug, pkg+"about to send") r.config.Logger.Log(smartlogger.Debug, pkg+"about to send")
for i, destination := range r.destination { for i, dest := range r.destination {
err = destination.load(chunk) err = dest.load(chunk)
if err != nil { if err != nil {
r.config.Logger.Log(smartlogger.Error, pkg+"failed to load clip to output"+strconv.Itoa(i)) r.config.Logger.Log(smartlogger.Error, pkg+"failed to load clip to output"+strconv.Itoa(i))
} }