Skip to content

Commit

Permalink
httpd: drop unnecessary dependencies from httpd.hh
Browse files Browse the repository at this point in the history
Downstream files are updated to re-add necessary dependencies.

This reduces include load, especially app-template.hh, which pulls
in a bunch of boost dependencies.

Closes #2607
  • Loading branch information
avikivity authored and nyh committed Jan 6, 2025
1 parent af9b804 commit ff24926
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/httpd/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <seastar/http/file_handler.hh>
#include <seastar/core/seastar.hh>
#include <seastar/core/reactor.hh>
#include <seastar/core/app-template.hh>
#include "demo.json.hh"
#include <seastar/http/api_docs.hh>
#include <seastar/core/thread.hh>
Expand Down
2 changes: 0 additions & 2 deletions include/seastar/http/httpd.hh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#include <seastar/http/request.hh>
#include <seastar/core/seastar.hh>
#include <seastar/core/sstring.hh>
#include <seastar/core/app-template.hh>
#include <seastar/core/circular_buffer.hh>
#include <seastar/core/distributed.hh>
#include <seastar/core/queue.hh>
#include <seastar/core/gate.hh>
Expand Down
1 change: 1 addition & 0 deletions src/core/prometheus.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <sstream>

#include <seastar/core/metrics_api.hh>
#include <seastar/core/scollectd.hh>
#include <seastar/http/function_handlers.hh>
#include <boost/algorithm/string/replace.hpp>
#include <boost/range/algorithm_ext/erase.hpp>
Expand Down
1 change: 1 addition & 0 deletions tests/unit/rest_api_httpd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <seastar/http/function_handlers.hh>
#include <seastar/http/file_handler.hh>
#include <seastar/core/seastar.hh>
#include <seastar/core/app-template.hh>
#include <seastar/http/api_docs.hh>
#include <seastar/core/thread.hh>
#include <seastar/net/inet_address.hh>
Expand Down

0 comments on commit ff24926

Please sign in to comment.