Skip to content

Commit 28b06c9

Browse files
committed
Updates to initial commit
1 parent 170d2b8 commit 28b06c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/mock_tests/mock_dbconnector.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include "dbconnector.h"
99

10+
1011
namespace swss
1112
{
1213
DBConnector::~DBConnector()
@@ -38,12 +39,13 @@ namespace swss
3839
m_conn->fd = socket(AF_UNIX, SOCK_DGRAM, 0);
3940
}
4041

41-
DBConnector::DBConnector(const std::string& dbName, unsigned int timeout, bool isTcpConn, const std::string& nameSpace)
42+
DBConnector::DBConnector(const std::string& dbName, unsigned int timeout, bool isTcpConn)
4243
: m_dbName(dbName)
43-
, m_namespace(nameSpace)
4444
{
4545
if (swss::SonicDBConfig::isInit() == false)
46+
{
4647
swss::SonicDBConfig::initialize("./database_config.json");
48+
}
4749
m_dbId = swss::SonicDBConfig::getDbId(dbName);
4850
if (isTcpConn)
4951
{

0 commit comments

Comments
 (0)