Commit a97db132 authored by szh's avatar szh

update setup

parent 865a9bcd
......@@ -18,6 +18,7 @@ func init() {
//gredis.Setup()
chain33.Setup()
util.Setup()
miner.Setup()
}
// @title Golang Gin API
......
......@@ -11,7 +11,7 @@ import (
"github.com/jinzhu/gorm"
)
func init() {
func Setup() {
height,err := models.GetHeight()
if err != nil {
if err == gorm.ErrRecordNotFound {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment