File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -391,8 +391,8 @@ export class Server {
391
391
392
392
const http2Server = setupServer ( ) ;
393
393
return new Promise < number | Error > ( ( resolve , reject ) => {
394
- function onError ( err : Error ) : void {
395
- trace ( 'Failed to bind ' + subchannelAddressToString ( address ) + ' with error ' + err . message ) ;
394
+ const onError = ( err : Error ) => {
395
+ this . trace ( 'Failed to bind ' + subchannelAddressToString ( address ) + ' with error ' + err . message ) ;
396
396
resolve ( err ) ;
397
397
}
398
398
@@ -467,8 +467,8 @@ export class Server {
467
467
const address = addressList [ 0 ] ;
468
468
const http2Server = setupServer ( ) ;
469
469
return new Promise < BindResult > ( ( resolve , reject ) => {
470
- function onError ( err : Error ) : void {
471
- trace ( 'Failed to bind ' + subchannelAddressToString ( address ) + ' with error ' + err . message ) ;
470
+ const onError = ( err : Error ) => {
471
+ this . trace ( 'Failed to bind ' + subchannelAddressToString ( address ) + ' with error ' + err . message ) ;
472
472
resolve ( bindWildcardPort ( addressList . slice ( 1 ) ) ) ;
473
473
}
474
474
You can’t perform that action at this time.
0 commit comments