Browse Source

Microoptimise

master
Con Kolivas 10 years ago
parent
commit
71be121083
  1. 4
      src/generator.c

4
src/generator.c

@ -1736,8 +1736,8 @@ retry:
/* Anything remaining should be share submissions */ /* Anything remaining should be share submissions */
json_t *val = json_loads(buf, 0, NULL); json_t *val = json_loads(buf, 0, NULL);
if (!val) if (unlikely(!val))
LOGWARNING("Received unrecognised message: %s", buf); LOGWARNING("Generator received unrecognised message: %s", buf);
else else
submit_share(proxi, val); submit_share(proxi, val);
} }

Loading…
Cancel
Save