From f9521ae540869632cd23b855fe33ed72aeb11499 Mon Sep 17 00:00:00 2001 From: sdttttt <760159537@qq.com> Date: Sun, 6 Sep 2020 14:27:14 +0800 Subject: [PATCH] refactoring: Delete "SlotName". --- core/system/slot.go | 6 ------ core/system/slot_test.go | 6 ------ 2 files changed, 12 deletions(-) diff --git a/core/system/slot.go b/core/system/slot.go index 9a8bd325a..785d7f09c 100644 --- a/core/system/slot.go +++ b/core/system/slot.go @@ -5,8 +5,6 @@ import ( "github.com/alibaba/sentinel-golang/core/stat" ) -const SlotName = "SystemAdaptiveSlot" - type SystemAdaptiveSlot struct { } @@ -76,7 +74,3 @@ func checkBbrSimple() bool { } return true } - -func (s *SystemAdaptiveSlot) String() string { - return SlotName -} diff --git a/core/system/slot_test.go b/core/system/slot_test.go index 68bce34a4..fe21ddf35 100644 --- a/core/system/slot_test.go +++ b/core/system/slot_test.go @@ -109,9 +109,3 @@ func TestDoCheckRuleDefault(t *testing.T) { assert.Equal(t, true, isOK) assert.Equal(t, float64(0), v) } - -func TestString(t *testing.T) { - var sas *SystemAdaptiveSlot - - assert.True(t, sas.String() == SlotName) -}