From 9f6d3759387144be0f07a68e3600acf282a6b9cf Mon Sep 17 00:00:00 2001 From: mmsqe Date: Fri, 29 Nov 2024 18:45:35 +0800 Subject: [PATCH] revert rest config --- server/config/config.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/server/config/config.go b/server/config/config.go index b08d7c8000ca..b75b5bd87f8c 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -141,15 +141,6 @@ type GRPCConfig struct { MaxSendMsgSize int `mapstructure:"max-send-msg-size"` } -// RESTConfig defines configuration for the rest server. -type RESTConfig struct { - // Enable defines if the rest server should be enabled. - Enable bool `mapstructure:"enable"` - - // Address defines the API server to listen on - Address string `mapstructure:"address"` -} - // StateSyncConfig defines the state sync snapshot configuration. type StateSyncConfig struct { // SnapshotInterval sets the interval at which state sync snapshots are taken. @@ -193,7 +184,6 @@ type Config struct { Telemetry telemetry.Config `mapstructure:"telemetry"` API APIConfig `mapstructure:"api"` GRPC GRPCConfig `mapstructure:"grpc"` - REST RESTConfig `mapstructure:"rest"` StateSync StateSyncConfig `mapstructure:"state-sync"` Streaming StreamingConfig `mapstructure:"streaming"` Mempool MempoolConfig `mapstructure:"mempool"`