opoll / opollminer

Official mining application for OpenPoll Platform
1 stars 0 forks source link

cache miner admin authorization token #43

Open zack-w opened 6 years ago

zack-w commented 6 years ago

doing a new database request for the admin authorization token for each API request is not needed. as the authorization token will not change once the miner is booted up, this should be cached locally

https://github.com/opoll/opollminer/blob/a3bdc33d90c91adb020ae5ecd7b69f3e1992e876/lib/admin/middleware.js#L20