mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-04-23 03:00:50 -04:00
rephrasing the comments
This commit is contained in:
@@ -104,7 +104,8 @@ func action(ctx *cli.Context) error {
|
||||
defer func() {
|
||||
log.Info("Graceful shutdown initiated")
|
||||
|
||||
// Prevent new transactions by canceling the loop context.
|
||||
// Cancel the loop context to immediately stop the periodic goroutines that are responsible
|
||||
// for sending new transactions. Only waiting for confirmation of in-flight transactions.
|
||||
loopCancel()
|
||||
|
||||
// Close relayers to ensure all pending transactions are processed.
|
||||
@@ -112,7 +113,8 @@ func action(ctx *cli.Context) error {
|
||||
l1relayer.Close()
|
||||
l2relayer.Close()
|
||||
|
||||
// Halt confirmation signal handling by canceling the instance context.
|
||||
// Cancel the instance context to stop all operations across the application,
|
||||
// which includes halting the processing of any ongoing confirmation signals.
|
||||
instanceCancel()
|
||||
|
||||
// Close the database connection.
|
||||
|
||||
@@ -105,14 +105,16 @@ func action(ctx *cli.Context) error {
|
||||
defer func() {
|
||||
log.Info("Graceful shutdown initiated")
|
||||
|
||||
// Prevent new transactions by canceling the loop context.
|
||||
// Cancel the loop context to immediately stop the periodic goroutines that are responsible
|
||||
// for sending new transactions. Only waiting for confirmation of in-flight transactions.
|
||||
loopCancel()
|
||||
|
||||
// Close relayers to ensure all pending transactions are processed.
|
||||
// This includes any in-flight transactions that have not yet been confirmed.
|
||||
l2relayer.Close()
|
||||
|
||||
// Halt confirmation signal handling by canceling the instance context.
|
||||
// Cancel the instance context to stop all operations across the application,
|
||||
// which includes halting the processing of any ongoing confirmation signals.
|
||||
instanceCancel()
|
||||
|
||||
// Close the database connection.
|
||||
|
||||
Reference in New Issue
Block a user