mirror of
https://github.com/fluencelabs/fluent-pad
synced 2025-04-25 00:42:14 +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);
|
||||
};
|
||||
|
||||
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 className="header-item">
|
||||
<button className="button" onClick={() => api.clean(client!)}>
|
||||
Clean
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div className="header-item">
|
||||
Connection status: {client ? <span className="accent">connected</span> : 'disconnected'}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user