fix: correct numeric types in progress notifications (#361)
* fix: correct numeric types in progress notifications The standard specifies that these may be floating-point. * fix: regenerate schemas
This commit is contained in:
parent
6a97503e29
commit
589815a40e
1 changed files with 16 additions and 22 deletions
|
|
@ -69,8 +69,8 @@ impl MyServer {
|
|||
let _ = client
|
||||
.notify_progress(ProgressNotificationParam {
|
||||
progress_token: progress_token.clone(),
|
||||
progress: step,
|
||||
total: Some(10),
|
||||
progress: (step as f64),
|
||||
total: Some(10.0),
|
||||
message: Some("Some message".into()),
|
||||
})
|
||||
.await;
|
||||
|
|
|
|||
Loading…
Reference in a new issue