diff --git a/@overflow/infra/service/infra.service.ts b/@overflow/infra/service/infra.service.ts index f4d4508..fbf6dd5 100644 --- a/@overflow/infra/service/infra.service.ts +++ b/@overflow/infra/service/infra.service.ts @@ -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('InfraService.registDiscoverd', probeID, base64); }