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

IWF-369: Remove key from map when signal/internal channel is empty #495

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

longquanzheng
Copy link
Contributor

@longquanzheng longquanzheng commented Nov 25, 2024

Description

Before
Screenshot 2024-11-25 at 3 37 45 PM

After

Screenshot 2024-11-25 at 3 39 08 PM

Checklist

  • Code compiles correctly
  • Tests for the changes have been added
  • All tests passing
  • This PR change is backwards-compatible
  • This PR CONTAINS a (planned) breaking change (it is not backwards compatible)

Related Issue

Closes #issue_number

}
}

func (i *InternalChannel) DumpReceived() map[string][]*iwfidl.EncodedObject {
Copy link
Contributor

@lwolczynski lwolczynski Nov 27, 2024

Choose a reason for hiding this comment

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

Should this be GetReceived?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍
I think GetAllReceived maybe more clear and consistent with other GetAll... methods for continueAsNewer to call.

Comment on lines 10 to 16
func NewInterStateChannel() *InternalChannel {
return &InternalChannel{
receivedData: map[string][]*iwfidl.EncodedObject{},
}
}

func RebuildInterStateChannel(refill map[string][]*iwfidl.EncodedObject) *InternalChannel {
Copy link
Contributor

Choose a reason for hiding this comment

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

NewInternalChannel & RebuildInternalChannel?

@longquanzheng longquanzheng enabled auto-merge (squash) December 3, 2024 00:28
@longquanzheng longquanzheng merged commit 1352220 into main Dec 3, 2024
10 checks passed
@longquanzheng longquanzheng deleted the IWF-369 branch December 3, 2024 00:44
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