Skip to content

Commit

Permalink
feat: rename batch api functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Oct 23, 2024
1 parent 585f728 commit fc4b230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1439,15 +1439,15 @@ const z_loaned_keyexpr_t *z_subscriber_keyexpr(const z_loaned_subscriber_t *sub)
#endif

#if Z_FEATURE_BATCHING == 1
z_result_t zp_batching_start(const z_loaned_session_t *zs) {
z_result_t zp_batch_start(const z_loaned_session_t *zs) {
if (_Z_RC_IS_NULL(zs)) {
return _Z_ERR_SESSION_CLOSED;
}
_z_session_t *session = _Z_RC_IN_VAL(zs);
return _z_transport_start_batching(&session->_tp) ? _Z_RES_OK : _Z_ERR_GENERIC;
}

z_result_t zp_batching_stop(const z_loaned_session_t *zs) {
z_result_t zp_batch_flush(const z_loaned_session_t *zs) {
_z_session_t *session = _Z_RC_IN_VAL(zs);
if (_Z_RC_IS_NULL(zs)) {
return _Z_ERR_SESSION_CLOSED;
Expand Down

0 comments on commit fc4b230

Please sign in to comment.