diff options
Diffstat (limited to 'src/protocol/reqrep')
| -rw-r--r-- | src/protocol/reqrep/req.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocol/reqrep/req.c b/src/protocol/reqrep/req.c index 20fb07f8..fdf29fd9 100644 --- a/src/protocol/reqrep/req.c +++ b/src/protocol/reqrep/req.c @@ -273,7 +273,7 @@ nni_req_sock_setopt(void *arg, int opt, const void *buf, size_t sz) switch (opt) { case NNG_OPT_RESENDTIME: - rv = nni_setopt_duration(&req->retry, buf, sz); + rv = nni_setopt_usec(&req->retry, buf, sz); break; case NNG_OPT_RAW: rv = nni_setopt_int(&req->raw, buf, sz, 0, 1); @@ -298,7 +298,7 @@ nni_req_sock_getopt(void *arg, int opt, void *buf, size_t *szp) switch (opt) { case NNG_OPT_RESENDTIME: - rv = nni_getopt_duration(&req->retry, buf, szp); + rv = nni_getopt_usec(&req->retry, buf, szp); break; case NNG_OPT_RAW: rv = nni_getopt_int(&req->raw, buf, szp); |
