File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1616 * SPDX-License-Identifier: Apache-2.0
1717 */
1818
19- import { ClientReadableStream } from 'grpc-web' ;
19+ import { ClientReadableStream , StatusCode } from 'grpc-web' ;
2020import { compactDecrypt } from 'jose' ;
2121import * as pako from 'pako' ;
2222import { Observable , of , from } from 'rxjs' ;
@@ -31,7 +31,7 @@ import {
3131} from 'app/types/generated/vizierapi_pb' ;
3232import { VizierServiceClient } from 'app/types/generated/VizierapiServiceClientPb' ;
3333
34- import { GRPCStatusCode , VizierQueryError } from './vizier' ;
34+ import { VizierQueryError } from './vizier' ;
3535import { VizierTable } from './vizier-table' ;
3636
3737const noop = ( ) => { } ;
@@ -380,7 +380,7 @@ export class VizierGRPCClient {
380380 } ) ;
381381 call . on ( 'error' , ( grpcError ) => {
382382 let error : VizierQueryError ;
383- if ( grpcError . code === GRPCStatusCode . Unavailable ) {
383+ if ( grpcError . code === StatusCode . UNAVAILABLE ) {
384384 error = new VizierQueryError ( 'unavailable' , grpcError . message ) ;
385385 } else {
386386 error = new VizierQueryError ( 'server' , grpcError . message ) ;
You can’t perform that action at this time.
0 commit comments