ChandimaPrabath commited on
Commit
fe17250
·
1 Parent(s): 8d1f734
Files changed (1) hide show
  1. LoadBalancer.py +2 -1
LoadBalancer.py CHANGED
@@ -34,8 +34,9 @@ class LoadBalancer:
34
  if not os.path.exists(self.CACHE_DIR):
35
  os.makedirs(self.CACHE_DIR)
36
 
37
- # Index the file structure initially
38
  self.file_structure=indexer()
 
39
 
40
  # Start polling and file checking in separate threads
41
  polling_thread = Thread(target=self.start_polling)
 
34
  if not os.path.exists(self.CACHE_DIR):
35
  os.makedirs(self.CACHE_DIR)
36
 
37
+ # run services
38
  self.file_structure=indexer()
39
+ self.start_prefetching()
40
 
41
  # Start polling and file checking in separate threads
42
  polling_thread = Thread(target=self.start_polling)