-
Notifications
You must be signed in to change notification settings - Fork 109
chore!: migrate to Node 18 #2271
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Warning: This pull request is touching the following templated files:
|
a6c5e25
to
e5c8e8c
Compare
e5c8e8c
to
851f870
Compare
851f870
to
06c038e
Compare
dfb4bbf
to
1311e66
Compare
1311e66
to
a6fffb6
Compare
a6fffb6
to
5392c8e
Compare
src/transaction.ts
Outdated
) | ||
?.on('response', response => { | ||
if (response.metadata && response.metadata!.transaction && !this.id) { | ||
this._update(response.metadata!.transaction); | ||
} | ||
}) | ||
.on('error', err => { | ||
.on('error', async err => { |
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 problematic. If you make "error" event handler async , then span might not get end properly. Remove async from here and do void this.begin()
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.
done
src/transaction.ts
Outdated
) | ||
.on('response', response => { | ||
if (response.metadata && response.metadata!.transaction && !this.id) { | ||
this._update(response.metadata!.transaction); | ||
} | ||
}) | ||
.on('error', err => { | ||
.on('error', async err => { |
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.
same here
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.
done
src/session-pool.ts
Outdated
@@ -768,7 +771,9 @@ export class SessionPool extends EventEmitter implements SessionPoolInterface { | |||
const index = this._inventory.sessions.indexOf(session); | |||
|
|||
this._inventory.sessions.splice(index, 1); | |||
this._destroy(session); | |||
this._destroy(session) |
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.
could we use void here instead ?
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.
done
@@ -61,6 +62,8 @@ export class DatabaseAdminClient { | |||
private _defaults: {[method: string]: gax.CallSettings}; | |||
private _universeDomain: string; | |||
private _servicePath: string; | |||
private _log = logging.log('spanner'); |
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.
Are these changes manual ?
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.
no
No description provided.