Commit a97db132 authored by szh's avatar szh

update setup

parent 865a9bcd
...@@ -18,6 +18,7 @@ func init() { ...@@ -18,6 +18,7 @@ func init() {
//gredis.Setup() //gredis.Setup()
chain33.Setup() chain33.Setup()
util.Setup() util.Setup()
miner.Setup()
} }
// @title Golang Gin API // @title Golang Gin API
......
...@@ -11,7 +11,7 @@ import ( ...@@ -11,7 +11,7 @@ import (
"github.com/jinzhu/gorm" "github.com/jinzhu/gorm"
) )
func init() { func Setup() {
height,err := models.GetHeight() height,err := models.GetHeight()
if err != nil { if err != nil {
if err == gorm.ErrRecordNotFound { 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