add lock to datadrawer

This commit is contained in:
robcaulk 2022-06-07 01:07:30 +02:00
parent 4b26b6aaec
commit cab8f517b4

View File

@ -5,6 +5,7 @@ import json
import logging
import re
import shutil
import threading
from pathlib import Path
from typing import Any, Dict, Tuple
@ -44,6 +45,7 @@ class FreqaiDataDrawer:
self.create_follower_dict()
self.load_drawer_from_disk()
self.training_queue: Dict[str, int] = {}
self.history_lock = threading.Lock()
# self.create_training_queue(pair_whitelist)
def load_drawer_from_disk(self):