Skip to content

Instantly share code, notes, and snippets.

@derekargueta
Created April 11, 2019 05:07
Show Gist options
  • Save derekargueta/5b8437cd3dfbd6f954530e2d0b9090db to your computer and use it in GitHub Desktop.
Save derekargueta/5b8437cd3dfbd6f954530e2d0b9090db to your computer and use it in GitHub Desktop.
void FilterManagerImpl::addReadFilter(ReadFilterSharedPtr filter) {
ASSERT(connection_.state() == Connection::State::Open);
ActiveReadFilterPtr new_filter(new ActiveReadFilter{*this, filter});
filter->initializeReadFilterCallbacks(*new_filter);
new_filter->moveIntoListBack(std::move(new_filter), upstream_filters_);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment