aboutsummaryrefslogtreecommitdiffstats
path: root/vbench/src/vbench/vbench/dropped_tagger.cpp
blob: f0f75fa67108bf894ec3ae0fdf6df7016d19312e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "dropped_tagger.h"

namespace vbench {

DroppedTagger::DroppedTagger(Handler<Request> &next)
    : _next(next)
{
}

void
DroppedTagger::handle(Request::UP request)
{
    request->status(Request::STATUS_DROPPED);
    _next.handle(std::move(request));
}

} // namespace vbench