Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Commit

Permalink
missed this file
Browse files Browse the repository at this point in the history
  • Loading branch information
David Blackman committed Feb 24, 2012
1 parent 2383a86 commit a9b7acc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions webapp/graphite/hypertable_client.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from django.conf import settings
from graphite.logger import log
import hypertable.thriftclient

HYPERTABLE_CLIENT = None

if settings.HYPERTABLE_SERVER:
log.info('have hypertable server @ %s' % settings.HYPERTABLE_SERVER)
(host, port) = settings.HYPERTABLE_SERVER.split(':')
HYPERTABLE_CLIENT = hypertable.thriftclient.ThriftClient(host, int(port))
log.info('now have client!')

0 comments on commit a9b7acc

Please sign in to comment.