From 63281bbdfd31201f19b8620514c65c0e4685fb69 Mon Sep 17 00:00:00 2001 From: DieMyst Date: Thu, 24 Dec 2020 19:47:17 +0300 Subject: [PATCH] rename, update version --- package.json | 2 +- src/fluenceConnection.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index d85b1b13..3000fb9b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fluence", - "version": "0.7.107", + "version": "0.7.108", "description": "the browser js-libp2p client for the Fluence network", "main": "./dist/fluence.js", "typings": "./dist/fluence.d.ts", diff --git a/src/fluenceConnection.ts b/src/fluenceConnection.ts index 0cc3f996..9743c56f 100644 --- a/src/fluenceConnection.ts +++ b/src/fluenceConnection.ts @@ -39,11 +39,11 @@ export class FluenceConnection { private readonly address: Multiaddr; readonly nodePeerId: PeerId; private readonly selfPeerIdStr: string; - private readonly handleCall: (call: Particle) => void; + private readonly handleParticle: (call: Particle) => void; - constructor(multiaddr: Multiaddr, hostPeerId: PeerId, selfPeerId: PeerId, handleCall: (call: Particle) => void) { + constructor(multiaddr: Multiaddr, hostPeerId: PeerId, selfPeerId: PeerId, handleParticle: (call: Particle) => void) { this.selfPeerId = selfPeerId; - this.handleCall = handleCall; + this.handleParticle = handleParticle; this.selfPeerIdStr = selfPeerId.toB58String(); this.address = multiaddr; this.nodePeerId = hostPeerId; @@ -89,7 +89,7 @@ export class FluenceConnection { let particle = parseParticle(msg); log.debug('Particle is received:'); log.debug(JSON.stringify(particle, undefined, 2)); - _this.handleCall(particle); + _this.handleParticle(particle); } catch (e) { log.error('error on handling a new incoming message: ' + e); }