diff options
Diffstat (limited to 'src/leap')
-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 |