Skip to content

Commit

Permalink
fix version info
Browse files Browse the repository at this point in the history
  • Loading branch information
rapthead committed Jun 19, 2024
1 parent dcced71 commit 2a1cc1d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ builds:
- amd64
- arm64
ldflags:
- -X github.com/ozontech/framer/buildinfo.Version={{.Version}}
- -X main.Version={{.Version}}

archives:
- format: tar.gz
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ framer is the most performant grpc load generator

## Performance
![benchmark chart](./assets/benchmark_chart.png)

Load generators was limited in 2 CPU.
Load generators configurations are available in [benchmarks directory](./benchmarks)

### How we achive this performance values?
Expand Down
3 changes: 0 additions & 3 deletions buildinfo/buildinfo.go

This file was deleted.

5 changes: 3 additions & 2 deletions cmd/framer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

"github.com/alecthomas/kong"
mangokong "github.com/alecthomas/mango-kong"
"github.com/ozontech/framer/buildinfo"
)

var CLI struct {
Expand All @@ -20,12 +19,14 @@ var CLI struct {
DebugServer bool `help:"Enable debug server."`
}

var Version = "unknown"

type VersionFlag string

func (v VersionFlag) Decode(ctx *kong.DecodeContext) error { return nil }
func (v VersionFlag) IsBool() bool { return true }
func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error {
fmt.Println(buildinfo.Version)
fmt.Println(Version)
app.Exit(0)
return nil
}
Expand Down

0 comments on commit 2a1cc1d

Please sign in to comment.