Skip to content

Commit

Permalink
Merge pull request #1624 from mrpalide/fix/reduce-shutting-down-timeout
Browse files Browse the repository at this point in the history
reduce `transport_manager` timeout on module shutting down
  • Loading branch information
jdknives authored Jun 15, 2023
2 parents a1f98ad + 7d2a647 commit ceb1b90
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/visor/visor.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,11 +485,6 @@ func (v *Visor) Close() error {
errCh := make(chan error, 1)
t := time.NewTimer(moduleShutdownTimeout)

// should keep transport.manager shutdown continue till all transports delete there
if cl.src == "transport.manager" {
t = time.NewTimer(2 * time.Hour)
}

log := v.MasterLogger().PackageLogger(fmt.Sprintf("visor:shutdown:%s", cl.src)).
WithField("func", fmt.Sprintf("[%d/%d]", i+1, len(v.closeStack)))
log.Debug("Shutting down module...")
Expand Down

0 comments on commit ceb1b90

Please sign in to comment.