Dont save user file in parallel
This commit is contained in:
parent
233d5f31f2
commit
e3baf8944e
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@ import logging
|
|||
import json
|
||||
import time
|
||||
|
||||
import util
|
||||
from Crypt import CryptBitcoin
|
||||
from Plugin import PluginManager
|
||||
from Config import config
|
||||
|
@ -26,6 +27,7 @@ class User(object):
|
|||
self.log = logging.getLogger("User:%s" % self.master_address)
|
||||
|
||||
# Save to data/users.json
|
||||
@util.Noparallel(queue=True, ignore_class=True)
|
||||
def save(self):
|
||||
s = time.time()
|
||||
users = json.load(open("%s/users.json" % config.data_dir))
|
||||
|
|
Loading…
Reference in a new issue