-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: version compatibility check for MonoVertex #1912
Conversation
Signed-off-by: Sidhant Kohli <[email protected]>
Signed-off-by: Sidhant Kohli <[email protected]>
Signed-off-by: Derek Wang <[email protected]>
Signed-off-by: Vigith Maurice <[email protected]>
Signed-off-by: Sidhant Kohli <[email protected]>
Signed-off-by: Sidhant Kohli <[email protected]>
Signed-off-by: Sidhant Kohli <[email protected]>
Signed-off-by: Sidhant Kohli <[email protected]>
/// Struct to hold version information | ||
#[derive(Debug)] | ||
pub struct VersionInfo { | ||
pub version: String, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need all these information?
// Retry limit logic | ||
retry += 1; | ||
if retry >= 10 { | ||
// Return an error if the retry limit is reached | ||
return Err(Error::ServerInfoError( | ||
"server-info reading retry exceeded".to_string(), | ||
)); | ||
} | ||
sleep(Duration::from_millis(100)).await; // Sleep before retrying | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use our retry?
|
||
pub mod server_info; | ||
|
||
pub mod version; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these need not be pub
also mod version
should be inside server_info
fixes #1908