diff --git a/tools/cli/adminDBCleanCommand.go b/tools/cli/adminDBCleanCommand.go index 2a836e70c2a..aa56829c68f 100644 --- a/tools/cli/adminDBCleanCommand.go +++ b/tools/cli/adminDBCleanCommand.go @@ -54,7 +54,7 @@ func AdminDBDataDecodeThrift(c *cli.Context) { for typeName, t := range decodingTypes { err = encoder.Decode(data, t) if err == nil { - // encoding back to confirm + // encoding back to confirm data2, err := encoder.Encode(t) if err != nil { ErrorAndExit("cannot encode back to confirm", err) diff --git a/tools/cli/supportedDecodingTypes.go b/tools/cli/supportedDecodingTypes.go index 1225ae5b341..b1d3d5909ac 100644 --- a/tools/cli/supportedDecodingTypes.go +++ b/tools/cli/supportedDecodingTypes.go @@ -32,27 +32,27 @@ import ( ) var decodingTypes = map[string]codec.ThriftObject{ - "shared.History": &shared.History{}, - "shared.HistoryEvent": &shared.HistoryEvent{}, - "shared.Memo": &shared.Memo{}, - "shared.ResetPoints": &shared.ResetPoints{}, - "shared.BadBinaries": &shared.BadBinaries{}, - "shared.VersionHistories": &shared.VersionHistories{}, - "replicator.FailoverMarkers": &replicator.FailoverMarkers{}, - "history.ProcessingQueueStates": &history.ProcessingQueueStates{}, - "config.DynamicConfigBlob": &config.DynamicConfigBlob{}, - "sqlblobs.ShardInfo": &sqlblobs.ShardInfo{}, - "sqlblobs.DomainInfo": &sqlblobs.DomainInfo{}, - "sqlblobs.HistoryTreeInfo": &sqlblobs.HistoryTreeInfo{}, + "shared.History": &shared.History{}, + "shared.HistoryEvent": &shared.HistoryEvent{}, + "shared.Memo": &shared.Memo{}, + "shared.ResetPoints": &shared.ResetPoints{}, + "shared.BadBinaries": &shared.BadBinaries{}, + "shared.VersionHistories": &shared.VersionHistories{}, + "replicator.FailoverMarkers": &replicator.FailoverMarkers{}, + "history.ProcessingQueueStates": &history.ProcessingQueueStates{}, + "config.DynamicConfigBlob": &config.DynamicConfigBlob{}, + "sqlblobs.ShardInfo": &sqlblobs.ShardInfo{}, + "sqlblobs.DomainInfo": &sqlblobs.DomainInfo{}, + "sqlblobs.HistoryTreeInfo": &sqlblobs.HistoryTreeInfo{}, "sqlblobs.WorkflowExecutionInfo": &sqlblobs.WorkflowExecutionInfo{}, - "sqlblobs.ActivityInfo": &sqlblobs.ActivityInfo{}, - "sqlblobs.ChildExecutionInfo": &sqlblobs.ChildExecutionInfo{}, - "sqlblobs.SignalInfo": &sqlblobs.SignalInfo{}, - "sqlblobs.RequestCancelInfo": &sqlblobs.RequestCancelInfo{}, - "sqlblobs.TimerInfo": &sqlblobs.TimerInfo{}, - "sqlblobs.TaskInfo": &sqlblobs.TaskInfo{}, - "sqlblobs.TaskListInfo": &sqlblobs.TaskListInfo{}, - "sqlblobs.TransferTaskInfo": &sqlblobs.TransferTaskInfo{}, - "sqlblobs.TimerTaskInfo": &sqlblobs.TimerTaskInfo{}, - "sqlblobs.ReplicationTaskInfo": &sqlblobs.ReplicationTaskInfo{}, -} \ No newline at end of file + "sqlblobs.ActivityInfo": &sqlblobs.ActivityInfo{}, + "sqlblobs.ChildExecutionInfo": &sqlblobs.ChildExecutionInfo{}, + "sqlblobs.SignalInfo": &sqlblobs.SignalInfo{}, + "sqlblobs.RequestCancelInfo": &sqlblobs.RequestCancelInfo{}, + "sqlblobs.TimerInfo": &sqlblobs.TimerInfo{}, + "sqlblobs.TaskInfo": &sqlblobs.TaskInfo{}, + "sqlblobs.TaskListInfo": &sqlblobs.TaskListInfo{}, + "sqlblobs.TransferTaskInfo": &sqlblobs.TransferTaskInfo{}, + "sqlblobs.TimerTaskInfo": &sqlblobs.TimerTaskInfo{}, + "sqlblobs.ReplicationTaskInfo": &sqlblobs.ReplicationTaskInfo{}, +}