Skip to content

Commit

Permalink
Merge pull request #30 from vrecan/lint
Browse files Browse the repository at this point in the history
fix linting
  • Loading branch information
vrecan authored Dec 29, 2017
2 parents e71c415 + 04b0af9 commit 0f3cc33
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions death.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package death
//Manage the death of your application.

import (
LOG "github.com/cihub/seelog"
"io"
"os"
"os/signal"
"reflect"
"sync"
"time"

LOG "github.com/cihub/seelog"
)

//Death manages the death of your application.
Expand Down Expand Up @@ -53,12 +54,12 @@ func NewDeath(signals ...os.Signal) (death *Death) {
return death
}

//Override the time death is willing to wait for a objects to be closed.
//SetTimeout Overrides the time death is willing to wait for a objects to be closed.
func (d *Death) SetTimeout(t time.Duration) {
d.timeout = t
}

//setLogger Override the default logger (seelog)
//SetLogger Overrides the default logger (seelog)
func (d *Death) SetLogger(l Logger) {
d.log = l
}
Expand Down

0 comments on commit 0f3cc33

Please sign in to comment.