Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: add AI service registry info log line #3362

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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: 2 additions & 0 deletions CHANGELOG_PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

#### Orchestrator

- [#3362](https://github.com/livepeer/go-livepeer/pull/3362) Add AI service registry log line.

#### Transcoder

### Bug Fixes 🐞
Expand Down
1 change: 1 addition & 0 deletions cmd/livepeer/starter/starter.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@
}

if *cfg.AIServiceRegistry {
glog.Infof("Using AIServiceRegistry")

Check warning on line 740 in cmd/livepeer/starter/starter.go

View check run for this annotation

Codecov / codecov/patch

cmd/livepeer/starter/starter.go#L740

Added line #L740 was not covered by tests
// For the time-being Livepeer AI Subnet uses its own ServiceRegistry, so we define it here
ethCfg.ServiceRegistryAddr = ethcommon.HexToAddress("0x04C0b249740175999E5BF5c9ac1dA92431EF34C5")
}
Expand Down Expand Up @@ -966,9 +967,9 @@
mfv, _ := new(big.Int).SetString(*cfg.MaxFaceValue, 10)
if mfv == nil {
panic(fmt.Errorf("-maxFaceValue must be a valid integer, but %v provided. Restart the node with a different valid value for -maxFaceValue", *cfg.MaxFaceValue))
} else {
n.SetMaxFaceValue(mfv)
}

Check warning on line 972 in cmd/livepeer/starter/starter.go

View workflow job for this annotation

GitHub Actions / Run tests defined for the project

if block ends with call to panic function, so drop this else and outdent its block

}
if n.NodeType == core.BroadcasterNode {
Expand Down
Loading