ing
This commit is contained in:
parent
33923ef19e
commit
853141dd0f
|
@ -4,7 +4,7 @@ import { RPCService } from '@loafer/ng-rpc';
|
|||
import { Infra } from '@overflow/commons-typescript/model/infra';
|
||||
import { Page, PageParams } from '@overflow/commons-typescript/core/model';
|
||||
import { Host, Service } from '@overflow/commons-typescript';
|
||||
import { deflate } from 'pako';
|
||||
import { gzip } from 'pako';
|
||||
|
||||
|
||||
|
||||
|
@ -28,7 +28,7 @@ export class InfraService {
|
|||
};
|
||||
|
||||
const json = JSON.stringify(discoverd);
|
||||
const compressed = deflate(json, { to: 'string' });
|
||||
const compressed = gzip(json, { to: 'string' });
|
||||
const base64 = btoa(compressed);
|
||||
return this.rpcService.call<Infra[]>('InfraService.registDiscoverd', probeID, base64);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user