mirror of
https://github.com/fluencelabs/fluent-pad
synced 2025-05-28 08:21:19 +00:00
remove clean call
This commit is contained in:
parent
655d2fcf81
commit
47aad98639
@ -288,26 +288,3 @@ export const addEntry = async (client: FluenceClient, entry: string) => {
|
|||||||
|
|
||||||
await sendParticle(client, particle);
|
await sendParticle(client, particle);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const clean = async (client: FluenceClient) => {
|
|
||||||
const particle = new Particle(
|
|
||||||
`
|
|
||||||
(seq
|
|
||||||
(call myRelay ("op" "identity") [])
|
|
||||||
(seq
|
|
||||||
(call userlistNode (userlist "clear") [])
|
|
||||||
(call historyNode (history "clear") [])
|
|
||||||
)
|
|
||||||
)
|
|
||||||
`,
|
|
||||||
{
|
|
||||||
myRelay: client.relayPeerID.toB58String(),
|
|
||||||
userlist: userListServiceId,
|
|
||||||
history: historyServiceId,
|
|
||||||
userlistNode: userListNodePid,
|
|
||||||
historyNode: historyNodePid,
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
await sendParticle(client, particle);
|
|
||||||
};
|
|
||||||
|
@ -52,12 +52,6 @@ const App = () => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="header-item">
|
|
||||||
<button className="button" onClick={() => api.clean(client!)}>
|
|
||||||
Clean
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="header-item">
|
<div className="header-item">
|
||||||
Connection status: {client ? <span className="accent">connected</span> : 'disconnected'}
|
Connection status: {client ? <span className="accent">connected</span> : 'disconnected'}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user