/*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2016 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// Make sure there can only be one drainer at once
folly::Baton<> callbackBaton, threadStartBaton;
- consumer.fn = [&](int i) {
- callbackBaton.wait();
- };
+ consumer.fn = [&](int /* i */) { callbackBaton.wait(); };
QueueConsumer competingConsumer;
competingConsumer.startConsuming(&eventBase, &queue);
queue.putMessage(1);
// Make sure there can only be one drainer at once
folly::Baton<> callbackBaton, threadStartBaton;
- consumer.fn = [&](int i) {
- callbackBaton.wait();
- };
+ consumer.fn = [&](int /* i */) { callbackBaton.wait(); };
QueueConsumer competingConsumer;
competingConsumer.startConsuming(&eventBase, &queue);
queue.putMessage(1);