Skip to content

Commit

Permalink
add missing String
Browse files Browse the repository at this point in the history
  • Loading branch information
mhamza15 committed Mar 3, 2025
1 parent 75c7202 commit 4ca2798
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions go/vt/vtctl/workflow/traffic_switcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ const (
// TrafficSwitchDirection specifies the switching direction.
type TrafficSwitchDirection int

func (tsd TrafficSwitchDirection) String() string {
if tsd == DirectionForward {
return "forward"
}
return "backward"
}

// TableRemovalType specifies the way the a table will be removed during a
// DropSource for a MoveTables workflow.
type TableRemovalType int
Expand Down

0 comments on commit 4ca2798

Please sign in to comment.