fix(userspace/falco) class naming convention

Co-authored-by: Lorenzo Fontana <fontanalorenz@gmail.com>
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
Leonardo Grasso 2020-11-27 13:58:10 +01:00 committed by poiana
parent c237ddc738
commit f8b66d051b
2 changed files with 5 additions and 5 deletions

View File

@ -271,7 +271,7 @@ void falco_outputs::reopen_outputs()
void falco_outputs::stop_worker()
{
Watchdog<void *> wd;
watchdog<void *> wd;
wd.start([&](void *) -> void {
falco_logger::log(LOG_NOTICE, "output channels still blocked, discarding all remaining notifications\n");
m_queue.clear();
@ -295,7 +295,7 @@ inline void falco_outputs::push(ctrl_msg_type cmt)
void falco_outputs::worker()
{
Watchdog<std::string> wd;
watchdog<std::string> wd;
wd.start([&](std::string payload) -> void {
falco_logger::log(LOG_CRIT, "\"" + payload + "\" output timeout, all output channels are blocked\n");
});

View File

@ -20,16 +20,16 @@ limitations under the License.
#include <atomic>
template<typename _T>
class Watchdog
class watchdog
{
public:
Watchdog():
watchdog():
m_timeout(nullptr),
m_is_running(false)
{
}
~Watchdog()
~watchdog()
{
stop();
}