Skip to content

Commit bbe5b50

Browse files
authored
Merge pull request #62 from yoyofxteam/viper_181
升级依赖Viper 1.8.1
2 parents 6ebe548 + 1621e3c commit bbe5b50

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

go.mod

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ module github.com/shima-park/agollo
33
go 1.13
44

55
require (
6-
github.com/magiconair/properties v1.8.1
7-
github.com/pelletier/go-toml v1.4.0 // indirect
8-
github.com/spf13/viper v1.4.0
9-
github.com/stretchr/testify v1.6.1
10-
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77
6+
github.com/bketelsen/crypt v0.0.4
7+
github.com/magiconair/properties v1.8.5
8+
github.com/spf13/viper v1.8.1
9+
github.com/stretchr/testify v1.7.0
1110
gopkg.in/go-playground/assert.v1 v1.2.1
1211
)

viper-remote/remote.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"path/filepath"
99
"sync"
1010

11+
crypt "github.com/bketelsen/crypt/config"
1112
"github.com/shima-park/agollo"
1213
"github.com/spf13/viper"
13-
crypt "github.com/xordataexchange/crypt/config"
1414
)
1515

1616
var (
@@ -87,7 +87,7 @@ func newAgollo(appid, endpoint string, opts []agollo.Option) (agollo.Agollo, err
8787
// 监听并同步apollo配置
8888
ag.Start()
8989

90-
agolloMap.Store(endpoint + "/" + appid, ag)
90+
agolloMap.Store(endpoint+"/"+appid, ag)
9191

9292
return ag, nil
9393
}

0 commit comments

Comments
 (0)