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

feat: various changes related to documentation and getting java build in order #12

Merged
merged 5 commits into from
Jan 9, 2024

Conversation

yquansah
Copy link
Contributor

@yquansah yquansah commented Jan 9, 2024

This PR contains several changes for the clients which include:

  • Adding basic documentation for all of the clients
  • Getting Java build working with Maven + Dagger
  • Changing the API interface for the node client to be equivalent to the old flipt-node

@yquansah yquansah marked this pull request as draft January 9, 2024 00:16
@yquansah yquansah changed the title feat: add basic documentation for all the language clients feat: various changes related to documentation and getting java build in order Jan 9, 2024
@yquansah yquansah requested a review from markphelps January 9, 2024 14:42
@yquansah yquansah marked this pull request as ready for review January 9, 2024 14:42
build/main.go Outdated
}
sema = make(chan struct{}, 4)
sema = make(chan struct{}, 5)
Copy link
Member

Choose a reason for hiding this comment

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

I've seen this pattern get replicated from Flipt where I first did it.
It is designed to limit the number of concurrent goroutines to the capacity of this channel.
If the capacity is > number of goroutines started it is moot.
I meant to say something on the other repo, but didn't get around to it.

Long story short, I think you could remove the semaphore and take altogther.

I dont' think we do enough concurrently to need to dial things down. We spin up tens of concurrent builds in Flipt proper, that is why we dial it back there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@GeorgeMac Yeah I was just thinking about that, we dont have enough running concurrently to justify the semaphore yet. I can remove this pattern all together.

Comment on lines 7 to 8
```sh
```
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this needs something in here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@GeorgeMac good catch!

@yquansah yquansah requested a review from GeorgeMac January 9, 2024 15:11
@yquansah yquansah merged commit 7b6f251 into main Jan 9, 2024
5 checks passed
@yquansah yquansah deleted the add-docs branch January 9, 2024 15:17
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