-
Notifications
You must be signed in to change notification settings - Fork 4
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: efm2 #371
base: main
Are you sure you want to change the base?
feat: efm2 #371
Conversation
765f928
to
cec0010
Compare
e7551a0
to
9c6277c
Compare
EFM and EFM2 seem to be missing a piece of code converting |
const val = this.clientToAbortRef?.deref() ?? null; | ||
return val !== null; |
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.
This is overcomplicated
const val = this.clientToAbortRef?.deref() ?? null; | |
return val !== null; | |
return !!this.clientToAbortRef?.deref() |
* | ||
* @param clientToAbort A reference to the connection associated with this context that will be aborted. | ||
*/ | ||
constructor(clientToAbort: any) { |
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.
The type of the client is known here, so we should not be using any
constructor(clientToAbort: any) { | |
constructor(clientToAbort: ClientWrapper) { |
this.clientToAbortRef = null; | ||
} | ||
|
||
getClient(): ClientWrapper { |
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.
getClient(): ClientWrapper { | |
getClient(): ClientWrapper | null { |
|
||
export interface MonitorService { | ||
startMonitoring( | ||
clientToAbort: any, |
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.
clientToAbort: any, | |
clientToAbort: ClientWrapper, |
* @param context The {@link MonitorConnectionContext} representing a connection. | ||
* @param clientToAbort A reference to the connection associated with this context that will be aborted. | ||
*/ | ||
stopMonitoring(context: MonitorConnectionContext, clientToAbort: any): Promise<void>; |
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.
stopMonitoring(context: MonitorConnectionContext, clientToAbort: any): Promise<void>; | |
stopMonitoring(context: MonitorConnectionContext, clientToAbort: ClientWrapper): Promise<void>; |
} | ||
|
||
async startMonitoring( | ||
clientToAbort: any, |
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.
clientToAbort: any, | |
clientToAbort: ClientWrapper, |
Summary
Description
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.