From 0e97513603246d770dafb38e57ac6f15b589984b Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Tue, 16 May 2017 13:03:19 +0200 Subject: [refactor] cleanup --- src/leap/bitmask/bonafide/_protocol.py | 10 ---------- src/leap/bitmask/bonafide/provider.py | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) (limited to 'src/leap/bitmask') 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 -- cgit v1.2.3