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