From a0744edb8644ce3a2727ba97608197e05cf93e71 Mon Sep 17 00:00:00 2001 From: Nathan <148575555+nathan-artie@users.noreply.github.com> Date: Thu, 27 Jun 2024 18:37:45 -0700 Subject: [PATCH] Revert --- lib/debezium/schema.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/debezium/schema.go b/lib/debezium/schema.go index c4d0d3dde..db9bcbb52 100644 --- a/lib/debezium/schema.go +++ b/lib/debezium/schema.go @@ -61,12 +61,8 @@ type Field struct { Parameters map[string]any `json:"parameters"` } -func (f Field) Scale() (int32, error) { - return maputil.GetInt32FromMap(f.Parameters, "scale") -} - func (f Field) GetScaleAndPrecision() (int32, *int32, error) { - scale, scaleErr := f.Scale() + scale, scaleErr := maputil.GetInt32FromMap(f.Parameters, "scale") if scaleErr != nil { return 0, nil, scaleErr }