Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions orchagent/p4orch/tests/fake_notificationconsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ namespace swss

NotificationConsumer::NotificationConsumer(swss::DBConnector *db, const std::string &channel, int pri,
size_t popBatchSize)
: Selectable(pri), POP_BATCH_SIZE(popBatchSize), m_db(db), m_subscribe(NULL), m_channel(channel),
: Selectable(pri), POP_BATCH_SIZE(popBatchSize), m_db(db), m_subscribe(nullptr), m_channel(channel),
m_queue(std::make_unique<FifoNotificationQueue>())
{
SWSS_LOG_ENTER();
}

NotificationConsumer::NotificationConsumer(swss::DBConnector *db, const std::string &channel, int pri,
size_t popBatchSize, NotificationQueuePolicy policy)
: Selectable(pri), POP_BATCH_SIZE(popBatchSize), m_db(db), m_subscribe(NULL), m_channel(channel),
: Selectable(pri), POP_BATCH_SIZE(popBatchSize), m_db(db), m_subscribe(nullptr), m_channel(channel),
m_queue(policy == NotificationQueuePolicy::LruDedup
? std::unique_ptr<NotificationQueueBase>(std::make_unique<LruDedupNotificationQueue>(channel))
: std::unique_ptr<NotificationQueueBase>(std::make_unique<FifoNotificationQueue>()))
Expand Down
Loading