Skip to content

Commit

Permalink
format example code, fix ci fail
Browse files Browse the repository at this point in the history
  • Loading branch information
gorexlv committed Jun 22, 2020
1 parent 17c7bea commit c342f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/all/internal/app/demo/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ func NewEngine() *Engine {
func (eng *Engine) initSentinel() error {
var config = sentinel.DefaultConfig()
config.FlowRules = append(config.FlowRules, &flow.FlowRule{
Resource: "GET:/ping",
Resource: "GET:/ping",
MetricType: flow.QPS,
Count: 1,
Count: 1,
})
return config.InitSentinelCoreComponent()
}
Expand Down

0 comments on commit c342f5d

Please sign in to comment.