fix compile error

This commit is contained in:
yanyiwu 2016-01-11 14:50:14 +08:00
parent d92d3f194d
commit b41cb0e2ee
5 changed files with 8 additions and 6 deletions

View File

@ -9,6 +9,11 @@
3. server/husky -> deps/husky/
4. test/unittest/gtest -> deps/gtest
依赖库升级:
1. [limonp] to version v0.5.1
2. [husky] to version v0.2.0
## v4.2.1
1. Upgrade [limonp] to version v0.4.1, [husky] to version v0.2.0

View File

@ -4,7 +4,6 @@
port=11200
thread_number=4
queue_max_size=4096
#dict path
dict_path=/usr/local/cppjieba/dict/jieba.dict.utf8

View File

@ -4,7 +4,6 @@
port=11200
thread_number=4
queue_max_size=4096
#dict path
dict_path=../dict/jieba.dict.utf8

View File

@ -5,7 +5,7 @@
#include <string.h>
#include "limonp/Config.hpp"
#include "husky/thread_pool_server.h"
#include "Jieba.hpp"
#include "cppjieba/Jieba.hpp"
using namespace husky;
using namespace cppjieba;
@ -76,7 +76,6 @@ bool Run(int argc, char** argv) {
}
int port = conf.Get("port", 1339);
int threadNumber = conf.Get("thread_number", 4);
int queueMaxSize = conf.Get("queue_max_size", 1024);
string dictPath = conf.Get("dict_path", "");
string modelPath = conf.Get("model_path", "");
string userDictPath = conf.Get("user_dict_path", "");
@ -88,7 +87,7 @@ bool Run(int argc, char** argv) {
userDictPath);
ReqHandler reqHandler(jieba);
ThreadPoolServer server(threadNumber, queueMaxSize, port, reqHandler);
ThreadPoolServer server(threadNumber, port, reqHandler);
return server.Start();
}

View File

@ -1,4 +1,4 @@
#include "Jieba.hpp"
#include "cppjieba/Jieba.hpp"
using namespace std;