Skip to content

Commit

Permalink
Merge pull request #5 from KyberNetwork/develop
Browse files Browse the repository at this point in the history
remove unused code
  • Loading branch information
secmask authored Nov 25, 2020
2 parents 877e32d + 7ca725f commit dccc4f5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 193 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ jobs:
uses: actions/checkout@v1

- name: Build
env:

# env:
run: |
cd cmd/cclog-server
go build -ldflags '-linkmode external -w -extldflags "-static"'
# docker build -t asia.gcr.io/$GCLOUD_PROJECT/market_data:1.0 .
# docker push asia.gcr.io/$GCLOUD_PROJECT/market_data:1.0
go build -ldflags '-linkmode external -w -extldflags "-static"'
2 changes: 1 addition & 1 deletion cmd/cclog-server/cclog.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func run(c *cli.Context) error {
defer f()
zap.ReplaceGlobals(sugar.Desugar())
maxSize := c.Uint64(flagMaxFileSize)
if maxSize <= 0 {
if maxSize == 0 {
sugar.Fatalw("max size should > 0")
}
wm := server.NewWriterMan(c.String(flagBaseDir), maxSize*1024*1024)
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ go 1.15

require (
github.com/TheZeroSlave/zapsentry v1.5.0
github.com/ethereum/go-ethereum v1.9.21
github.com/getsentry/sentry-go v0.7.0
github.com/pkg/errors v0.8.1
github.com/robfig/cron/v3 v3.0.0
github.com/stretchr/testify v1.6.1
github.com/urfave/cli v1.22.4
go.uber.org/zap v1.16.0
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
gopkg.in/yaml.v2 v2.3.0 // indirect
)
Loading

0 comments on commit dccc4f5

Please sign in to comment.