mirror of
https://github.com/fluencelabs/fluent-pad
synced 2025-04-25 08:52:14 +00:00
rename pid -> peerId
This commit is contained in:
parent
d4fb811054
commit
7cd14a7ca0
@ -2,13 +2,13 @@ import { FluenceClient, Particle, sendParticle, sendParticleAsFetch } from '@flu
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
fluentPadServiceId,
|
fluentPadServiceId,
|
||||||
historyNodePid,
|
historyNodePeerId,
|
||||||
historyServiceId,
|
historyServiceId,
|
||||||
notifyOnlineFnName,
|
notifyOnlineFnName,
|
||||||
notifyTextUpdateFnName,
|
notifyTextUpdateFnName,
|
||||||
notifyUserAddedFnName,
|
notifyUserAddedFnName,
|
||||||
notifyUserRemovedFnName,
|
notifyUserRemovedFnName,
|
||||||
userListNodePid,
|
userListNodePeerId,
|
||||||
userListServiceId,
|
userListServiceId,
|
||||||
} from './constants';
|
} from './constants';
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ export const updateOnlineStatuses = async (client: FluenceClient) => {
|
|||||||
)
|
)
|
||||||
`,
|
`,
|
||||||
{
|
{
|
||||||
userlistNode: userListNodePid,
|
userlistNode: userListNodePeerId,
|
||||||
userlist: userListServiceId,
|
userlist: userListServiceId,
|
||||||
myRelay: client.relayPeerId,
|
myRelay: client.relayPeerId,
|
||||||
myPeerId: client.selfPeerId,
|
myPeerId: client.selfPeerId,
|
||||||
@ -103,7 +103,7 @@ export const notifySelfAdded = (client: FluenceClient, name: string) => {
|
|||||||
)
|
)
|
||||||
`,
|
`,
|
||||||
{
|
{
|
||||||
userlistNode: userListNodePid,
|
userlistNode: userListNodePeerId,
|
||||||
userlist: userListServiceId,
|
userlist: userListServiceId,
|
||||||
myRelay: client.relayPeerId,
|
myRelay: client.relayPeerId,
|
||||||
myPeerId: client.selfPeerId,
|
myPeerId: client.selfPeerId,
|
||||||
@ -138,7 +138,7 @@ export const getUserList = async (client: FluenceClient) => {
|
|||||||
)
|
)
|
||||||
`,
|
`,
|
||||||
{
|
{
|
||||||
userlistNode: userListNodePid,
|
userlistNode: userListNodePeerId,
|
||||||
userlist: userListServiceId,
|
userlist: userListServiceId,
|
||||||
myRelay: client.relayPeerId,
|
myRelay: client.relayPeerId,
|
||||||
myPeerId: client.selfPeerId,
|
myPeerId: client.selfPeerId,
|
||||||
@ -174,7 +174,7 @@ export const join = async (client: FluenceClient, nickName: string) => {
|
|||||||
relay_id: client.relayPeerId,
|
relay_id: client.relayPeerId,
|
||||||
},
|
},
|
||||||
userlist: userListServiceId,
|
userlist: userListServiceId,
|
||||||
userlistNode: userListNodePid,
|
userlistNode: userListNodePeerId,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -205,7 +205,7 @@ export const leave = async (client: FluenceClient) => {
|
|||||||
)
|
)
|
||||||
`,
|
`,
|
||||||
{
|
{
|
||||||
userlistNode: userListNodePid,
|
userlistNode: userListNodePeerId,
|
||||||
userlist: userListServiceId,
|
userlist: userListServiceId,
|
||||||
myRelay: client.relayPeerId,
|
myRelay: client.relayPeerId,
|
||||||
myPeerId: client.selfPeerId,
|
myPeerId: client.selfPeerId,
|
||||||
@ -239,8 +239,8 @@ export const getHistory = async (client: FluenceClient) => {
|
|||||||
myPeerId: client.selfPeerId,
|
myPeerId: client.selfPeerId,
|
||||||
userlist: userListServiceId,
|
userlist: userListServiceId,
|
||||||
history: historyServiceId,
|
history: historyServiceId,
|
||||||
userlistNode: userListNodePid,
|
userlistNode: userListNodePeerId,
|
||||||
historyNode: historyNodePid,
|
historyNode: historyNodePeerId,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -276,8 +276,8 @@ export const addEntry = async (client: FluenceClient, entry: string) => {
|
|||||||
`,
|
`,
|
||||||
|
|
||||||
{
|
{
|
||||||
userlistNode: userListNodePid,
|
userlistNode: userListNodePeerId,
|
||||||
historyNode: historyNodePid,
|
historyNode: historyNodePeerId,
|
||||||
entry: entry,
|
entry: entry,
|
||||||
userlist: userListServiceId,
|
userlist: userListServiceId,
|
||||||
history: historyServiceId,
|
history: historyServiceId,
|
||||||
|
@ -10,7 +10,7 @@ export const notifyTextUpdateFnName = 'notifyTextUpdate';
|
|||||||
export const userListServiceId = '03edcc81-7777-4234-b048-36305d8d65e2';
|
export const userListServiceId = '03edcc81-7777-4234-b048-36305d8d65e2';
|
||||||
export const historyServiceId = '7fb57031-1d3d-4391-9a9f-da40a6c4963d';
|
export const historyServiceId = '7fb57031-1d3d-4391-9a9f-da40a6c4963d';
|
||||||
|
|
||||||
export const userListNodePid = dev[2].peerId;
|
export const userListNodePeerId = dev[2].peerId;
|
||||||
export const historyNodePid = dev[2].peerId;
|
export const historyNodePeerId = dev[2].peerId;
|
||||||
|
|
||||||
export const relayNode = dev[0];
|
export const relayNode = dev[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user