From 5490f7ca76b1dd5a4f11fe2dbe2b6cd6a8a69d9e Mon Sep 17 00:00:00 2001 From: Markus Grüneis Date: Sat, 25 Oct 2014 00:38:26 +0200 Subject: hub: fix embarassing build errors --- src/hub/src/spreadspace.org/sfive-hub/s5hub.go | 2 +- src/hub/src/spreadspace.org/sfive/s5store.go | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/hub') diff --git a/src/hub/src/spreadspace.org/sfive-hub/s5hub.go b/src/hub/src/spreadspace.org/sfive-hub/s5hub.go index 4b45b15..4541b2e 100644 --- a/src/hub/src/spreadspace.org/sfive-hub/s5hub.go +++ b/src/hub/src/spreadspace.org/sfive-hub/s5hub.go @@ -13,7 +13,7 @@ var s5hl = log.New(os.Stderr, "[s5hub]\t", log.LstdFlags) func main() { db := flag.String("db", "/var/lib/sfive/db.sqlite", "path to the sqlite3 database file") - dbMysql = flag.Bool("db-mysql", false, "use MySQL connector") + dbMysql := flag.Bool("db-mysql", false, "use MySQL connector") pipe := flag.String("pipe", "/var/run/sfive/pipe", "path to the unix pipe for the pipeserver") ppipe := flag.String("pipegram", "/var/run/sfive/pipegram", "path to the unix datagram pipe for the pipeserver") startPipe := flag.Bool("start-pipe-server", true, "start a connection oriented pipe server; see option pipe") diff --git a/src/hub/src/spreadspace.org/sfive/s5store.go b/src/hub/src/spreadspace.org/sfive/s5store.go index 5fbd7f7..f96ef9f 100644 --- a/src/hub/src/spreadspace.org/sfive/s5store.go +++ b/src/hub/src/spreadspace.org/sfive/s5store.go @@ -70,8 +70,7 @@ func updateFromStatisticsData(value StatisticsData) (dataUpdateDb, []clientDataD func initDb(mysql bool, path string) (res *gorp.DbMap, hubId string, err error) { // connect to db using standard Go database/sql API - var db *DB - var err error + var db *sql.DB var dialect gorp.Dialect if mysql { @@ -79,7 +78,7 @@ func initDb(mysql bool, path string) (res *gorp.DbMap, hubId string, err error) if err != nil { return } - dialect = gorp.MySqlDialect{} + dialect = gorp.MySQLDialect{} } else { db, err = sql.Open("sqlite3", path) if err != nil { -- cgit v1.2.3