Browse Source

Code indentation fix

master
Maurizio Porrato 8 years ago
parent
commit
345a13edc2
1 changed files with 15 additions and 15 deletions
  1. +15
    -15
      manager.py

+ 15
- 15
manager.py View File

@@ -14,27 +14,27 @@ from frn.user import FRNUser
from twisted.python import log

if __name__ == '__main__':
import sys
import sys

log.startLogging(sys.stderr)
log.startLogging(sys.stderr)

def dummyManagerFactory():
log.msg("Building DummyManager")
return DummyManager()
def dummyManagerFactory():
log.msg("Building DummyManager")
return DummyManager()

def remoteManagerFactory():
log.msg("Building RemoteManager")
return RemoteManager(reactor)
def remoteManagerFactory():
log.msg("Building RemoteManager")
return RemoteManager(reactor)

pool = ConnectionPool("sqlite3", "/dev/shm/frnmanager.sqlite3", check_same_thread=False, cp_noisy=True)

def databaseManagerFactory():
log.msg("Building DatabaseManager")
return DatabaseManager(pool)
def databaseManagerFactory():
log.msg("Building DatabaseManager")
return DatabaseManager(pool)

reactor.listenTCP(10025, FRNManagerServerFactory(
databaseManagerFactory
))
reactor.run()
reactor.listenTCP(10025, FRNManagerServerFactory(
databaseManagerFactory
))
reactor.run()

# vim: set et ai sw=4 ts=4 sts=4:

Loading…
Cancel
Save