From dc567a1a4fdd52bad249fb555c8917265a130382 Mon Sep 17 00:00:00 2001 From: Sasha Date: Thu, 23 Feb 2023 00:01:39 +0100 Subject: [PATCH] remove comments --- examples/web-chat/src/App.tsx | 36 ----------------------------------- 1 file changed, 36 deletions(-) diff --git a/examples/web-chat/src/App.tsx b/examples/web-chat/src/App.tsx index 5cb73c0..4edac83 100644 --- a/examples/web-chat/src/App.tsx +++ b/examples/web-chat/src/App.tsx @@ -147,12 +147,6 @@ export default function App() { const [historicalMessagesRetrieved, setHistoricalMessagesRetrieved] = useState(false); - // useEffect(() => { - // initWaku(setWaku) - // .then(() => console.log("Waku init done")) - // .catch((e) => console.log("Waku init failed ", e)); - // }, []); - useEffect(() => { if (!waku) return; // Let's retrieve previous messages before listening to new messages @@ -241,36 +235,6 @@ export default function App() { ); } -// async function initWaku(setter: (waku: WakuLight) => void) { -// try { -// const publicKey = "AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM"; -// const fqdn = "test.waku.nodes.status.im"; -// const enrTree = `enrtree://${publicKey}@${fqdn}`; -// const waku = await createLightNode({ -// libp2p: { -// peerDiscovery: [ -// wakuDnsDiscovery(enrTree, { -// store: 1, -// filter: 2, -// lightpush: 2, -// }), -// wakuPeerExchangeDiscovery(), -// ], -// }, -// }); -// await waku.start(); -// await waitForRemotePeer(waku, [ -// Protocols.Store, -// Protocols.Filter, -// Protocols.LightPush, -// ]); - -// setter(waku); -// } catch (e) { -// console.log("Issue starting waku ", e); -// } -// } - function reduceMessages(state: Message[], newMessages: Message[]) { return state.concat(newMessages); }