Skip to content

Commit

Permalink
changefeedccl: Remove metrics scope library.
Browse files Browse the repository at this point in the history
Remove metrics scope library since it has been moved under changefeedccl.

Note: this is a move only refactoring, but it is structured as 2 changes
(one to add new files, and one to remove cdcutils files) so that it can
be easily backported.

Release Notes: None
  • Loading branch information
Yevgeniy Miretskiy committed Oct 30, 2021
1 parent b08c31d commit 9a187e0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 143 deletions.
11 changes: 2 additions & 9 deletions pkg/ccl/changefeedccl/cdcutils/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
name = "cdcutils",
srcs = [
"metrics_scope.go",
"throttle.go",
],
srcs = ["throttle.go"],
importpath = "github.com/cockroachdb/cockroach/pkg/ccl/changefeedccl/cdcutils",
visibility = ["//visibility:public"],
deps = [
Expand All @@ -21,17 +18,13 @@ go_library(

go_test(
name = "cdcutils_test",
srcs = [
"metrics_scope_test.go",
"throttle_test.go",
],
srcs = ["throttle_test.go"],
embed = [":cdcutils"],
deps = [
"//pkg/ccl/changefeedccl/changefeedbase",
"//pkg/settings/cluster",
"//pkg/util/leaktest",
"//pkg/util/log",
"//pkg/util/metric",
"@com_github_stretchr_testify//require",
],
)
77 changes: 0 additions & 77 deletions pkg/ccl/changefeedccl/cdcutils/metrics_scope.go

This file was deleted.

57 changes: 0 additions & 57 deletions pkg/ccl/changefeedccl/cdcutils/metrics_scope_test.go

This file was deleted.

0 comments on commit 9a187e0

Please sign in to comment.