Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# b7s daemon

b7s is a peer-to-peer networking daemon for the bless network.
b7s is a peer-to-peer networking daemon for the Bless network.
It is supported on Windows, Linux, and MacOS platforms for both x64 and arm64 architectures.

## Installation
Expand Down
2 changes: 1 addition & 1 deletion api/b7s-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ paths:


# Schema notes:
# - all fields have a x-go-type-skip-optional-pointer - this is because otherwise all fields which arent required are generated as *string instead of a string
# - all fields have a x-go-type-skip-optional-pointer - this is because otherwise all fields which aren't required are generated as *string instead of a string
# - all types have a Go name explicitly set - this is to avoid inlined structs in certain scenarios

components:
Expand Down
2 changes: 1 addition & 1 deletion api/server.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cmd/bootstrap-limiter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Description

This utility is aimed to provide an easy way to setup the system so that a non-privileged user can set resource limits for Bless Functions.
This tool is designed to be run a single time, before runing the Bless Worker Node.
This tool is designed to be run a single time, before running the Bless Worker Node.
If the user has no intention of using cgroups to set resource limits, there is no need in running this tool.

## Workaround
Expand Down
4 changes: 2 additions & 2 deletions cmd/bootstrap-limiter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func run() int {

log.Default().SetFlags(0)

// We'll only target linux, though potentially cgroups may exist on some other systems.
// We'll only target Linux, though potentially cgroups may exist on some other systems.
if runtime.GOOS != "linux" {
log.Printf("OS not supported")
return failure
Expand Down Expand Up @@ -128,7 +128,7 @@ func run() int {
// Set permissions for required files.
for _, file := range requiredFiles {

// Make sure group has write permissions.
// Make sure the group has write permissions.
err = os.Chmod(file, rootCgroupFilePermissions)
if err != nil {
log.Printf("could not set permissions to group writable for %v", file)
Expand Down
2 changes: 1 addition & 1 deletion cmd/manager/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# b7s-manager

This is a libp2p agent that runs along side the main b7s assembly.
This is a libp2p agent that runs alongside the main b7s assembly.

### Access Control

Expand Down
4 changes: 2 additions & 2 deletions cmd/node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ $ ./node --db /tmp/db --log-level debug --port 9000 --role worker --runtime ~/.l
```

The created `node` will listen on all addresses on TCP port 9000.
Database used to persist Node data between runs will be created in the `/tmp/db` subdirectory.
The database used to persist Node data between runs will be created in the `/tmp/db` subdirectory.

Bless Runtime path is given as `/home/user/.local/bin`.
At startup, node will check if the Bless Runtime is actually found there, namely the [bls-runtime](https://Bless.network/docs/protocol/runtime).
Expand All @@ -131,7 +131,7 @@ $ ./node --db /var/tmp/b7s/db --log-level debug --port 9002 -r head --workspace
```

The created `node` will listen on all addresses on TCP port 9002.
Database used to persist Node peer and function data between runs will be created at `/var/tmp/b7s/db`.
The database used to persist Node peer and function data between runs will be created at `/var/tmp/b7s/db`.

Any transient files needed for node operation will be created in the `/var/tmp/b7s/workspace` directory.

Expand Down
2 changes: 1 addition & 1 deletion cmd/node/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func run() int {

// HTTP server will be created in two scenarios:
// - node is a head node (head node always has a REST API)
// - node has prometheus metrics enabled
// - node has Prometheus metrics enabled
needHTTPServer = nodeRole == bls.HeadNode || cfg.Telemetry.Metrics.Enable
server *echo.Echo

Expand Down
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ type Metrics struct {
PrometheusAddress string `koanf:"prometheus-address" flag:"prometheus-address"`
}

// ConfigOptionInfo describes a specific configuration option, it's location in the config file and
// ConfigOptionInfo describes a specific configuration option, its location in the config file and
// corresponding CLI flags and environment variables. It can be used to generate documentation for the b7s node.
type ConfigOptionInfo struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Expand Down Expand Up @@ -182,7 +182,7 @@ func getFlagDescription(flag string) string {
case "tracing-http-endpoint":
return "tracing exporter HTTP endpoint"
case "prometheus-address":
return "address where prometheus metrics will be served"
return "address where Prometheus metrics will be served"
default:
return ""
}
Expand Down
2 changes: 1 addition & 1 deletion config/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func getFlagFromTag(tag string) (string, string) {
}

// return mapping of CLI flag to the config path used by koanf. E.g. address => connectivity.address.
// We don't have to enfore uniqueness of CLI flags as pflag does that for us.
// We don't have to enforce uniqueness of CLI flags as pflag does that for us.
func mapCLIFlagsToConfig(fields []ConfigOption) (map[string]string, error) {

flags := make(map[string]string)
Expand Down
2 changes: 1 addition & 1 deletion config/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func cliFlagTranslate(mapping map[string]string, fs *pflag.FlagSet) func(*pflag.
// - lowercase parts ("Dialback-Address" => "dialback-address")
// - join back parts using the environment variable delimiter (underscore) ("Connectivity_DialbackAddress" => "connectivity_dialback-address")
//
// Koanf then uses the underscore to determine structure and in which section the config option belongs.
// Koanf then uses the underscore to determine the structure and in which section the config option belongs.
func envClean(key string, value string) (string, any) {

key = strings.TrimPrefix(key, bls.EnvPrefix)
Expand Down