Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
acha-bill committed May 29, 2024
1 parent b2ad00b commit dfc6997
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions cmd/bee/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ func (c *command) initStartCmd() (err error) {
}

fmt.Print(beeWelcomeMessage)
fmt.Printf("\n\nversion: %v - planned to be supported until %v, please follow https://ethswarm.org/\n\n", bee.Version, endSupportDate())
fmt.Printf("DEPRECATION NOTICE:\nThe Debug API is deprecated and will be removed in the next release, version [2.2.0].\nPlease update your integrations to use the main Bee API to avoid service disruptions.\n\n")
logger.Info("bee version", "version", bee.Version)

go startTimeBomb(logger)
Expand Down
1 change: 0 additions & 1 deletion pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ type Service struct {
wsWg sync.WaitGroup // wait for all websockets to close on exit
quit chan struct{}

// from debug API
overlay *swarm.Address
publicKey ecdsa.PublicKey
pssPublicKey ecdsa.PublicKey
Expand Down
5 changes: 2 additions & 3 deletions pkg/api/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (s *Service) MountTechnicalDebug() {
s.mountTechnicalDebug()

s.Handler = web.ChainHandlers(
httpaccess.NewHTTPAccessLogHandler(s.logger, s.tracer, "debug api access"),
httpaccess.NewHTTPAccessLogHandler(s.logger, s.tracer, "api access"),
handlers.CompressHandler,
s.corsHandler,
web.NoCacheHeadersHandler,
Expand All @@ -46,7 +46,7 @@ func (s *Service) MountDebug() {
s.mountBusinessDebug()

s.Handler = web.ChainHandlers(
httpaccess.NewHTTPAccessLogHandler(s.logger, s.tracer, "debug api access"),
httpaccess.NewHTTPAccessLogHandler(s.logger, s.tracer, "api access"),
handlers.CompressHandler,
s.corsHandler,
web.NoCacheHeadersHandler,
Expand Down Expand Up @@ -370,7 +370,6 @@ func (s *Service) mountAPI() {

func (s *Service) mountBusinessDebug() {
handle := func(path string, handler http.Handler) {
s.logger.Warning(fmt.Sprintf("DEPRECATION NOTICE: %s endpoint is now part of the main Bee API. The Debug API will be removed in the next release, version [2.2.0]. Update your integrations to use the main Bee API to avoid service disruptions.", path))
if s.Restricted {
handler = web.ChainHandlers(auth.PermissionCheckHandler(s.auth), web.FinalHandler(handler))
}
Expand Down
1 change: 0 additions & 1 deletion pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,6 @@ func NewBee(
logger.Info("starting with restricted APIs")
}

// set up basic debug api endpoints for debugging and /health endpoint
beeNodeMode := api.LightMode
if o.FullNodeMode {
beeNodeMode = api.FullMode
Expand Down
2 changes: 1 addition & 1 deletion pkg/topology/kademlia/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A thorough explanation of the logic in the `manage()` forever loop:
The `manageC` channel gets triggered every time there's a change in the
information regarding peers we know about. This can be a result of: (1) A peer
has disconnected from us (2) A peer has been added to the list of
known peers (from discovery, debugapi, bootnode flag or just because it
known peers (from discovery, api, bootnode flag or just because it
was persisted in the address book and the node has been restarted).
So the information has been changed, and potentially upon disconnection,
Expand Down

0 comments on commit dfc6997

Please sign in to comment.