all, vendor: Switch back to non-forked thejerf/suture (#5171)
This commit is contained in:
committed by
Audrius Butkevicius
parent
8aa2d8d92c
commit
9e00b619ab
0
vendor/github.com/calmh/suture/LICENSE → vendor/github.com/thejerf/suture/LICENSE
generated
vendored
0
vendor/github.com/calmh/suture/LICENSE → vendor/github.com/thejerf/suture/LICENSE
generated
vendored
0
vendor/github.com/calmh/suture/doc.go → vendor/github.com/thejerf/suture/doc.go
generated
vendored
0
vendor/github.com/calmh/suture/doc.go → vendor/github.com/thejerf/suture/doc.go
generated
vendored
@@ -126,15 +126,15 @@ type Supervisor struct {
|
||||
// Spec is used to pass arguments to the New function to create a
|
||||
// supervisor. See the New function for full documentation.
|
||||
type Spec struct {
|
||||
Log func(string)
|
||||
FailureDecay float64
|
||||
FailureThreshold float64
|
||||
FailureBackoff time.Duration
|
||||
Timeout time.Duration
|
||||
LogBadStop BadStopLogger
|
||||
LogFailure FailureLogger
|
||||
LogBackoff BackoffLogger
|
||||
PanicPanics bool
|
||||
Log func(string)
|
||||
FailureDecay float64
|
||||
FailureThreshold float64
|
||||
FailureBackoff time.Duration
|
||||
Timeout time.Duration
|
||||
LogBadStop BadStopLogger
|
||||
LogFailure FailureLogger
|
||||
LogBackoff BackoffLogger
|
||||
PassThroughPanics bool
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -178,6 +178,9 @@ failure count to zero.
|
||||
|
||||
Timeout is how long Suture will wait for a service to properly terminate.
|
||||
|
||||
The PassThroughPanics options can be set to let panics in services propagate
|
||||
and crash the program, should this be desirable.
|
||||
|
||||
*/
|
||||
func New(name string, spec Spec) (s *Supervisor) {
|
||||
s = new(Supervisor)
|
||||
@@ -216,7 +219,7 @@ func New(name string, spec Spec) (s *Supervisor) {
|
||||
} else {
|
||||
s.timeout = spec.Timeout
|
||||
}
|
||||
s.recoverPanics = !spec.PanicPanics
|
||||
s.recoverPanics = !spec.PassThroughPanics
|
||||
|
||||
// overriding these allows for testing the threshold behavior
|
||||
s.getNow = time.Now
|
||||
16
vendor/manifest
vendored
16
vendor/manifest
vendored
@@ -74,14 +74,6 @@
|
||||
"branch": "master",
|
||||
"notests": true
|
||||
},
|
||||
{
|
||||
"importpath": "github.com/calmh/suture",
|
||||
"repository": "https://github.com/calmh/suture",
|
||||
"vcs": "git",
|
||||
"revision": "2741a6bb8fdeba8f30c948c83756edc4dd21b9c6",
|
||||
"branch": "master",
|
||||
"notests": true
|
||||
},
|
||||
{
|
||||
"importpath": "github.com/calmh/xdr",
|
||||
"repository": "https://github.com/calmh/xdr",
|
||||
@@ -440,6 +432,14 @@
|
||||
"branch": "master",
|
||||
"notests": true
|
||||
},
|
||||
{
|
||||
"importpath": "github.com/thejerf/suture",
|
||||
"repository": "https://github.com/thejerf/suture",
|
||||
"vcs": "git",
|
||||
"revision": "bf6ee6a0b047ebbe9ae07d847f750dd18c6a9276",
|
||||
"branch": "master",
|
||||
"notests": true
|
||||
},
|
||||
{
|
||||
"importpath": "github.com/tjfoc/gmsm/sm4",
|
||||
"repository": "https://github.com/tjfoc/gmsm",
|
||||
|
||||
Reference in New Issue
Block a user