Created
May 9, 2017 07:16
-
-
Save dashersw/a60460ce9eee89440d68f3dec3c6b464 to your computer and use it in GitHub Desktop.
Hassle-free microservices with cote.js — arbitration-service.js step 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
responder.on('update rate', (req, cb) => { | |
rates[req.currencies] = req.rate; | |
cb('OK!'); | |
publisher.publish('update rate', req); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment