Closed jiangytcn closed 5 years ago
Have you run gofmt
on this code?
yep, most the file changes are cause by go fmt ./...
@otoolep looks like the issue only happened after the commit 8336150318dfb2b1f196f6a4919041b65071f3fd
which is the 4.3.0-patch branch and v4.5.0 release
Why:
This change addresses the need by:
rqlite changed the output of 'status?pretty', failed to startup application
panic: interface conversion: interface {} is map[string]interface {}, not string
goroutine 1 [running]: xxxxxx/cvaas/vendor/github.com/rqlite/gorqlite.(*Connection).updateClusterInfo(0xc000166000, 0x162f4cf, 0x15) /Users/jiangytcn/go/src/xxxxxx/cvaas/vendor/github.com/rqlite/gorqlite/cluster.go:177 +0xcf4 xxx/cvaas/vendor/github.com/rqlite/gorqlite.Open(0x162f4cf, 0x15, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /Users/jiangytcn/go/src/xxx/cvaas/vendor/github.com/rqlite/gorqlite/gorqlite.go:119 +0x56c github.ibm.com/sos/cvaas/config/db.init.0() /Users/jiangytcn/go/src/xxx/cvaas/config/db/db.go:13 +0x6d exit status 2