Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed Dec 22, 2023
1 parent 87b27f8 commit e723fff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/kystrap/templates/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This is the {{ .name | ToTitle }} runtime server.
* Running the runtime container::

```bash
make run-container
make docker-run
```


4 changes: 2 additions & 2 deletions tools/kystrap/templates/go/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ type {{ .name | ToPascal }}TransformedItemValue struct {

// GetRuntimeName returns the name of the runtime. Example "@kyvejs/tendermint"
func (t *{{ .name | ToPascal }}Server) GetRuntimeName(ctx context.Context, req *pb.GetRuntimeNameRequest) (*pb.GetRuntimeNameResponse, error) {
return &pb.GetRuntimeNameResponse{Name: "@docker/tendermint-go"}, nil
return &pb.GetRuntimeNameResponse{Name: "@kyvejs/{{ .name | ToLower }}"}, nil
}

// GetRuntimeVersion returns the version of the runtime. Example "1.2.0"
func (t *{{ .name | ToPascal }}Server) GetRuntimeVersion(ctx context.Context, req *pb.GetRuntimeVersionRequest) (*pb.GetRuntimeVersionResponse, error) {
return &pb.GetRuntimeVersionResponse{Version: "0.0.1"}, nil
return &pb.GetRuntimeVersionResponse{Version: "{{ .version }}"}, nil
}

// ValidateSetConfig parses the raw runtime config found on pool, validates it and finally sets
Expand Down

0 comments on commit e723fff

Please sign in to comment.