-
Notifications
You must be signed in to change notification settings - Fork 11
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
Request node settings #227
Conversation
miiu96
commented
Jun 7, 2023
- Implemented a mechanism that will request the node settings then the indexer binary will start.
process/dataindexer/dataIndexer.go
Outdated
return nil | ||
} | ||
|
||
// CurrentSettings will set the provided settings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment not updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
cmd/elasticindexer/main.go
Outdated
for { | ||
err := host.Send([]byte{}, outport.TopicSettings) | ||
if err != nil { | ||
time.Sleep(time.Duration(retryDurationInSec) * time.Second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please refactor this to allow the normal closing of the node if the settings were not received in time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
cmd/elasticindexer/main.go
Outdated
for { | ||
select { | ||
case <-timer.C: | ||
err := host.Send([]byte{}, outport.TopicSettings) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make([]byte, 0) instead of literal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done