@@ -11,18 +11,18 @@ class SplitWorker(object):
1111
1212 _centinel = object ()
1313
14- def __init__ (self , synchronize_split , split_queue ):
14+ def __init__ (self , synchronize_feature_flag , feature_flag_queue ):
1515 """
1616 Class constructor.
1717
18- :param synchronize_split : handler to perform feature flag synchronization on incoming event
19- :type synchronize_split : callable
18+ :param synchronize_feature_flag : handler to perform feature flag synchronization on incoming event
19+ :type synchronize_feature_flag : callable
2020
21- :param split_queue : queue with feature flag updates notifications
22- :type split_queue : queue
21+ :param feature_flag_queue : queue with feature flag updates notifications
22+ :type feature_flag_queue : queue
2323 """
24- self ._split_queue = split_queue
25- self ._handler = synchronize_split
24+ self ._feature_flag_queue = feature_flag_queue
25+ self ._handler = synchronize_feature_flag
2626 self ._running = False
2727 self ._worker = None
2828
@@ -33,7 +33,7 @@ def is_running(self):
3333 def _run (self ):
3434 """Run worker handler."""
3535 while self .is_running ():
36- event = self ._split_queue .get ()
36+ event = self ._feature_flag_queue .get ()
3737 if not self .is_running ():
3838 break
3939 if event == self ._centinel :
@@ -53,7 +53,7 @@ def start(self):
5353 self ._running = True
5454
5555 _LOGGER .debug ('Starting Feature Flag Worker' )
56- self ._worker = threading .Thread (target = self ._run , name = 'PushSplitWorker ' , daemon = True )
56+ self ._worker = threading .Thread (target = self ._run , name = 'PushFeatureFlagWorker ' , daemon = True )
5757 self ._worker .start ()
5858
5959 def stop (self ):
@@ -63,4 +63,4 @@ def stop(self):
6363 _LOGGER .debug ('Worker is not running' )
6464 return
6565 self ._running = False
66- self ._split_queue .put (self ._centinel )
66+ self ._feature_flag_queue .put (self ._centinel )
0 commit comments