at work
This commit is contained in:
@@ -291,10 +291,10 @@ int cworker_handler(const cworker_t* worker, int socket) {
|
||||
int64_t timeout = 0;
|
||||
char* name = "none";
|
||||
|
||||
if (jparser_bind(&parser, JVALTYPE_NUM, "id", (void *)&id) < 0) {
|
||||
if (jparser_bind(&parser, JVALTYPE_INTEG, "id", (void *)&id) < 0) {
|
||||
log_error("Cannot bind id");
|
||||
}
|
||||
if (jparser_bind(&parser, JVALTYPE_NUM, "timeout", (void *)&timeout) < 0) {
|
||||
if (jparser_bind(&parser, JVALTYPE_INTEG, "timeout", (void *)&timeout) < 0) {
|
||||
log_error("Cannot bind timeout");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user