Skip to content

Commit

Permalink
The publishing interval specifies milliseconds instead of seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
svanharmelen committed Nov 4, 2024
1 parent fcc89d8 commit a1b0cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/client/session/services/subscriptions/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl Session {
) -> Result<u32, StatusCode> {
let request = CreateSubscriptionRequest {
request_header: self.make_request_header(),
requested_publishing_interval: publishing_interval.as_secs_f64(),
requested_publishing_interval: publishing_interval.as_millis() as f64,
requested_lifetime_count: lifetime_count,
requested_max_keep_alive_count: max_keep_alive_count,
max_notifications_per_publish,
Expand Down

0 comments on commit a1b0cc9

Please sign in to comment.