Fix go vet issue
This commit is contained in:
parent
a4df681f88
commit
00b605123b
@ -26,7 +26,7 @@ steps:
|
||||
commands:
|
||||
- apk --no-cache add alsa-lib-dev build-base git pkgconf
|
||||
- go get -v -d
|
||||
- go vet -v
|
||||
- go vet -v -tags pulse
|
||||
- go build -tags pulse -ldflags '-w -X main.Version=${DRONE_BRANCH}-${DRONE_COMMIT} -X main.build=${DRONE_BUILD_NUMBER}' -o deploy/reveil-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
|
||||
- ln deploy/reveil-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} reveil
|
||||
when:
|
||||
@ -39,7 +39,7 @@ steps:
|
||||
commands:
|
||||
- apk --no-cache add alsa-lib-dev build-base git pkgconf
|
||||
- go get -v -d
|
||||
- go vet -v
|
||||
- go vet -v -tags pulse
|
||||
- go build -tags pulse -ldflags '-w -X main.Version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}' -o deploy/reveil-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}v7
|
||||
- ln deploy/reveil-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}v7 reveil
|
||||
when:
|
||||
|
@ -23,7 +23,7 @@ func NewLevelDBStorage(path string) (s *LevelDBStorage, err error) {
|
||||
db, err = leveldb.OpenFile(path, nil)
|
||||
if err != nil {
|
||||
if _, ok := err.(*errors.ErrCorrupted); ok {
|
||||
log.Println("LevelDB was corrupted; attempting recovery (%s)", err.Error())
|
||||
log.Printf("LevelDB was corrupted; attempting recovery (%s)", err.Error())
|
||||
_, err = leveldb.RecoverFile(path, nil)
|
||||
if err != nil {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user