Skip to content

Commit 77d4c7c

Browse files
authored
Merge pull request #4 from metagogs/feature/update_template
fix: remove BucketFillInterval in template
2 parents b15a066 + d5b3da3 commit 77d4c7c

File tree

6 files changed

+10
-26
lines changed

6 files changed

+10
-26
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ gogs is an simple, fast and lightweight game server framewrok written in golang.
3333
### Init your project
3434
install the gogs
3535
```
36-
go install github.com/metagogs/gogs/tools/gogs@v0.0.9
36+
go install github.com/metagogs/gogs/tools/gogs@v0.1.0
3737
```
3838
init project
3939
```

codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ ignore:
2626
- "*.yml"
2727
- "*.yaml"
2828
- "*.md"
29+
- "*.tpl"
2930
- "docs/.*"
3031
- "**/*.proto"
3132
- "e2e/testdata/.*"
33+
- "tools/gogs/gen/testdata/.*"
3234
- "examples/.*"

examples/basedemo/main.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package main
22

33
import (
4-
"time"
5-
64
"github.com/metagogs/gogs"
75
"github.com/metagogs/gogs/acceptor"
86
"github.com/metagogs/gogs/config"
@@ -21,9 +19,7 @@ func main() {
2119
Name: "base",
2220
Groups: []*acceptor.AcceptorGroupConfig{
2321
&acceptor.AcceptorGroupConfig{
24-
GroupName: "base",
25-
BucketFillInterval: 40 * time.Millisecond,
26-
BucketCapacity: 10,
22+
GroupName: "base",
2723
},
2824
},
2925
}))
@@ -34,9 +30,7 @@ func main() {
3430
Name: "world",
3531
Groups: []*acceptor.AcceptorGroupConfig{
3632
&acceptor.AcceptorGroupConfig{
37-
GroupName: "data",
38-
BucketFillInterval: 40 * time.Millisecond,
39-
BucketCapacity: 10,
33+
GroupName: "data",
4034
},
4135
},
4236
}))

tools/gogs/gen/gentemplate/app.tpl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package main
22

33
import (
4-
"time"
5-
64
"{{.BasePackage}}/{{.Package}}"
75
"{{.BasePackage}}/internal/server"
86
"{{.BasePackage}}/internal/svc"
@@ -21,9 +19,7 @@ func main() {
2119
Name: "base",
2220
Groups: []*acceptor.AcceptorGroupConfig{
2321
&acceptor.AcceptorGroupConfig{
24-
GroupName: "base",
25-
BucketFillInterval: 40 * time.Millisecond,
26-
BucketCapacity: 10,
22+
GroupName: "base",
2723
},
2824
},
2925
}))
@@ -34,9 +30,7 @@ func main() {
3430
Name: "world",
3531
Groups: []*acceptor.AcceptorGroupConfig{
3632
&acceptor.AcceptorGroupConfig{
37-
GroupName: "data",
38-
BucketFillInterval: 40 * time.Millisecond,
39-
BucketCapacity: 10,
33+
GroupName: "data",
4034
},
4135
},
4236
}))

tools/gogs/gen/testdata/main.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package main
22

33
import (
4-
"time"
5-
64
"github.com/metagogs/gogs"
75
"github.com/metagogs/gogs/acceptor"
86
"github.com/metagogs/gogs/config"
@@ -21,9 +19,7 @@ func main() {
2119
Name: "base",
2220
Groups: []*acceptor.AcceptorGroupConfig{
2321
&acceptor.AcceptorGroupConfig{
24-
GroupName: "base",
25-
BucketFillInterval: 40 * time.Millisecond,
26-
BucketCapacity: 10,
22+
GroupName: "base",
2723
},
2824
},
2925
}))
@@ -34,9 +30,7 @@ func main() {
3430
Name: "world",
3531
Groups: []*acceptor.AcceptorGroupConfig{
3632
&acceptor.AcceptorGroupConfig{
37-
GroupName: "data",
38-
BucketFillInterval: 40 * time.Millisecond,
39-
BucketCapacity: 10,
33+
GroupName: "data",
4034
},
4135
},
4236
}))

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.0.9
1+
v0.1.0

0 commit comments

Comments
 (0)