Skip to content

Commit

Permalink
Simplify comment
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Nayak <[email protected]>
  • Loading branch information
rohit-nayak-ps committed Dec 9, 2024
1 parent d499bc3 commit f54bf63
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions go/vt/vtctl/workflow/traffic_switcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -1141,9 +1141,8 @@ func (ts *trafficSwitcher) cancelMigration(ctx context.Context, sm *StreamMigrat
var err error

if ctx.Err() != nil {
// We are creating a new context for cancelMigration, but we still record any error,
// for any forensics in case of failures, to help determine whether the migration is being
// cancelled due to a client timeout or some other reason.
// Even though we create a new context later on we still record any context error:
// for forensics in case of failures.
ts.Logger().Infof("In Cancel migration: original context invalid: %s", ctx.Err())
}

Expand Down

0 comments on commit f54bf63

Please sign in to comment.