Skip to content

refactoring as part of assignment - #133

Open
cbhakar wants to merge 4 commits into
NexClipper:masterfrom
cbhakar:master
Open

refactoring as part of assignment #133
cbhakar wants to merge 4 commits into
NexClipper:masterfrom
cbhakar:master

Conversation

@cbhakar

@cbhakar cbhakar commented Oct 9, 2021

Copy link
Copy Markdown

No description provided.

Comment thread pkg/agent/handshake.go
@@ -50,9 +50,7 @@ func (agent *KlevrAgent) handShake() *common.Primary {
agent.schedulerInterval = body.Me.CallCycle

if len(body.Agent.Nodes) > 0 {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for loop not needed as i can be done directly

Comment thread pkg/agent/scheduler.go
@@ -103,9 +103,8 @@ func (agent *KlevrAgent) getRemoteUpdatedTasks() []common.KlevrTask {

logger.Debugf("tasks: %v", tasks)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for loop not needed as i can be done directly

@jaehoonkim

Copy link
Copy Markdown

In situations where alive is true, it seems like you need to constantly check buf channel.
Modifications to queue.go seem to have to be reflected for the latest version.

@cbhakar

cbhakar commented Oct 24, 2021

Copy link
Copy Markdown
Author

In situations where alive is true, it seems like you need to constantly check buf channel. Modifications to queue.go seem to have to be reflected for the latest version.

certainly, you're correct, this is an accidental change in queue.go maybe i was just exploring and commited, I'm sorry.

@cbhakar cbhakar closed this Oct 24, 2021
@cbhakar

cbhakar commented Oct 24, 2021

Copy link
Copy Markdown
Author

i"m sorry i accidently closed the pull request as well. please ignore

@cbhakar cbhakar reopened this Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants