Skip to content

Commit 4d96763

Browse files
committed
feat: support metric upload
1 parent 3f9d2a4 commit 4d96763

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

wrapper.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ void setLog(std::string loglvl) {
7777
spdlog::set_level(lvl); // Set global log level to debug
7878
}
7979

80-
int WrapperAPI wrapperSetCtrl(CtrlType type, void *func) {
81-
return 0;
82-
}
83-
8480
int WrapperAPI wrapperInit(pConfig cfg) {
8581
int ret = 0;
8682
init_threads();
@@ -322,7 +318,7 @@ int WrapperAPI wrapperSetCtrl(CtrlType type, void *func) {
322318
printf("calculate function is null\n");
323319
}
324320
// 这里实际是往 python注册 wrapperMeterCustom 函数指针
325-
int ret = pyWrapper->wrapperSetCtrl(type, wrapperMeterCustom);
321+
int ret = pyWrapper->wrapperSetCtrl(type, wrapperMeterCustom);
326322
return ret;
327323
}
328324
return 0;

0 commit comments

Comments
 (0)