Go fmt new utils.

This commit is contained in:
Dave Collins 2013-10-04 10:09:15 -05:00
parent 96b92552b9
commit fd4b63073f
3 changed files with 34 additions and 36 deletions

View file

@ -1,6 +1,6 @@
/* // Copyright (c) 2013 Conformal Systems LLC.
* Copyright (c) 2013 Conformal Systems LLC. // Use of this source code is governed by an ISC
*/ // license that can be found in the LICENSE file.
package main package main
@ -9,9 +9,9 @@ import (
"flag" "flag"
"fmt" "fmt"
"github.com/conformal/btcdb" "github.com/conformal/btcdb"
"github.com/conformal/btcutil"
_ "github.com/conformal/btcdb/sqlite3"
_ "github.com/conformal/btcdb/ldb" _ "github.com/conformal/btcdb/ldb"
_ "github.com/conformal/btcdb/sqlite3"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire" "github.com/conformal/btcwire"
"github.com/conformal/seelog" "github.com/conformal/seelog"
"io" "io"

View file

@ -110,7 +110,6 @@ func getSha(db btcdb.Db, str string) (btcwire.ShaHash, error) {
return *sha, nil return *sha, nil
} }
var ntxcnt int64 var ntxcnt int64
var txspendcnt int64 var txspendcnt int64
var txgivecnt int64 var txgivecnt int64

View file

@ -10,8 +10,8 @@ import (
"flag" "flag"
"fmt" "fmt"
"github.com/conformal/btcdb" "github.com/conformal/btcdb"
_ "github.com/conformal/btcdb/sqlite3"
_ "github.com/conformal/btcdb/ldb" _ "github.com/conformal/btcdb/ldb"
_ "github.com/conformal/btcdb/sqlite3"
"github.com/conformal/btcwire" "github.com/conformal/btcwire"
"github.com/conformal/seelog" "github.com/conformal/seelog"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
@ -76,7 +76,6 @@ func main() {
} }
dbPath := filepath.Join(datadir, dbName) dbPath := filepath.Join(datadir, dbName)
log.Infof("loading db %v", dbType) log.Infof("loading db %v", dbType)
db, err := btcdb.OpenDB(dbType, dbPath) db, err := btcdb.OpenDB(dbType, dbPath)
if err != nil { if err != nil {