stop stat spam
This commit is contained in:
parent
925ae73cad
commit
f3695c274b
@ -52,8 +52,10 @@ swarm.on('connection', (peer) => {
|
|||||||
peer.on('data', async (data) => {
|
peer.on('data', async (data) => {
|
||||||
try {
|
try {
|
||||||
const parsedData = JSON.parse(data.toString());
|
const parsedData = JSON.parse(data.toString());
|
||||||
console.log(`[DEBUG] Received data from peer: ${JSON.stringify(parsedData)}`);
|
if (!(parsedData.command === 'stats' && Object.keys(parsedData.args).length === 0)) {
|
||||||
let response;
|
console.log(`[DEBUG] Received data from peer: ${JSON.stringify(parsedData)}`);
|
||||||
|
}
|
||||||
|
let response;
|
||||||
|
|
||||||
switch (parsedData.command) {
|
switch (parsedData.command) {
|
||||||
case 'listContainers':
|
case 'listContainers':
|
||||||
|
Loading…
Reference in New Issue
Block a user