Skip to content
Snippets Groups Projects
Commit 02d12d6d authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

hack to avoid possible issues on hashmap resize

parent f53652df
No related branches found
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
Pipeline #28449 failed
...@@ -60,7 +60,10 @@ namespace net { ...@@ -60,7 +60,10 @@ namespace net {
class Dispatcher { class Dispatcher {
public: public:
explicit Dispatcher(Dispatcher *parent=nullptr) : parent_(parent) {} explicit Dispatcher(Dispatcher *parent=nullptr) : parent_(parent) {
// FIXME threading and funcs_; hack use large size
funcs_.reserve(1024);
}
//void dispatch(Peer &, const std::string &msg); //void dispatch(Peer &, const std::string &msg);
void dispatch(Peer &, const msgpack::object &msg); void dispatch(Peer &, const msgpack::object &msg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment