Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _build_measure_path_with_sack(self, metric_id, sack_name):
return redis.SEP.join([sack_name.encode(), str(metric_id).encode()])
def _metric_key(self, metric):
return redis.SEP.join([self.STORAGE_PREFIX, str(metric.id).encode()])