From 4ca2798e2c5af5dd550f5e09b0047711b6c24025 Mon Sep 17 00:00:00 2001 From: Mohamed Hamza Date: Mon, 3 Mar 2025 13:43:36 -0500 Subject: [PATCH] add missing `String` --- go/vt/vtctl/workflow/traffic_switcher.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/go/vt/vtctl/workflow/traffic_switcher.go b/go/vt/vtctl/workflow/traffic_switcher.go index 52938d26edc..a2f4db01cc7 100644 --- a/go/vt/vtctl/workflow/traffic_switcher.go +++ b/go/vt/vtctl/workflow/traffic_switcher.go @@ -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