diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2017-05-16 13:03:19 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2017-05-16 19:32:24 +0200 |
commit | 0e97513603246d770dafb38e57ac6f15b589984b (patch) | |
tree | 6da8b956107c44637182e79596168fb432855fb3 /src/leap/bitmask | |
parent | b667facfe3c36e44396193a12748aaa9efbd718b (diff) |
[refactor] cleanup
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r-- | src/leap/bitmask/bonafide/_protocol.py | 10 | ||||
-rw-r--r-- | src/leap/bitmask/bonafide/provider.py | 2 |
2 files changed, 1 insertions, 11 deletions
diff --git a/src/leap/bitmask/bonafide/_protocol.py b/src/leap/bitmask/bonafide/_protocol.py index 674634d9..0de5b7c8 100644 --- a/src/leap/bitmask/bonafide/_protocol.py +++ b/src/leap/bitmask/bonafide/_protocol.py @@ -35,10 +35,6 @@ from twisted.internet.defer import fail from twisted.logger import Logger -# TODO [ ] enable-disable services -# TODO [ ] read provider info - - COMMANDS = 'signup', 'authenticate', 'logout', 'stats' _preffix = get_path_prefix() @@ -207,12 +203,6 @@ class BonafideProtocol(object): # FIXME to be implemented pass - def do_stats(self): - self.log.debug('Calculating Bonafide Service STATS') - mem = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss - return {'sessions': len(self._sessions), - 'mem': '%s KB' % (mem / 1024)} - def _get_provider_ca_path(provider_id): return os.path.join( diff --git a/src/leap/bitmask/bonafide/provider.py b/src/leap/bitmask/bonafide/provider.py index b44dae2e..1c6fbbcb 100644 --- a/src/leap/bitmask/bonafide/provider.py +++ b/src/leap/bitmask/bonafide/provider.py @@ -88,7 +88,7 @@ class BaseProvider(object): parsed = urlparse(netloc) if parsed.scheme != 'https': raise ValueError( - 'ProviderApi needs to be passed a url with https scheme') + 'BaseProvider needs to be passed a url with https scheme') self.netloc = parsed.netloc self.version = version |