remove clean call

This commit is contained in:
Pavel Murygin 2021-01-16 16:37:14 +03:00
parent 655d2fcf81
commit 47aad98639
2 changed files with 0 additions and 29 deletions

View File

@ -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);
};

View File

@ -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>