-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from launchdarkly/eb/ch36211/close-ldd
ensure that client components are cleaned up correctly in every configuration
- Loading branch information
Showing
4 changed files
with
232 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
from ldclient.interfaces import EventProcessor, UpdateProcessor | ||
|
||
|
||
class NullEventProcessor(EventProcessor): | ||
def __init__(self): | ||
pass | ||
|
||
def start(self): | ||
pass | ||
|
||
def stop(self): | ||
pass | ||
|
||
def is_alive(self): | ||
return False | ||
|
||
def send_event(self, event): | ||
pass | ||
|
||
def flush(self): | ||
pass | ||
|
||
|
||
class NullUpdateProcessor(UpdateProcessor): | ||
def __init__(self, config, store, ready): | ||
self._ready = ready | ||
|
||
def start(self): | ||
self._ready.set() | ||
|
||
def stop(self): | ||
pass | ||
|
||
def is_alive(self): | ||
return False | ||
|
||
def initialized(self): | ||
return True |
Oops, something went wrong.