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

Remove call to set GOMAXPROCS #4010

Merged
merged 2 commits into from
Jan 23, 2017
Merged

Conversation

aaronjwood
Copy link
Contributor

Since Go 1.5 GOMAXPROCS is already set to the number of CPUs in the system. This call will also be removed from Go in the near future (part of their plans once they feel the scheduler is good enough) so I thought it'd make sense to remove it here.

@unknwon
Copy link
Member

unknwon commented Jan 23, 2017

Thanks!

@unknwon unknwon merged commit 64788ff into gogs:develop Jan 23, 2017
Martchus pushed a commit to Martchus/gogs that referenced this pull request Aug 27, 2018
* Partial fix for gogs#4010

Swagger needs a comment line above each swagger:response comment -- it
uses these to populate the description: fields.  Adding minimal text
for now on the way to getting swagger validate to pass.  Many standard
swagger client libraries will not work at all with gitea until validate
passes, so prioritizing that over better descriptions for now.

Signed-off-by: Steve Traugott <[email protected]>
Martchus pushed a commit to Martchus/gogs that referenced this pull request Aug 27, 2018
* Partial fix for gogs#4010

Swagger needs a description field in each swagger:operation response.  Adding
minimal text for now on the way to getting swagger validate to pass.  Many
standard swagger client libraries will not work with gitea until validate
passes, so prioritizing that over better descriptions for now.

Signed-off-by: Steve Traugott <[email protected]>
Martchus pushed a commit to Martchus/gogs that referenced this pull request Aug 27, 2018
* Partial fix for gogs#4010

Swagger validation needs 'required: true' for parameters that are in
the URL path.

Signed-off-by: Steve Traugott <[email protected]>
Martchus pushed a commit to Martchus/gogs that referenced this pull request Aug 27, 2018
Fix all the resting errors to have a valid swagger file.

They are still some warnings but nothing blocking.

Doing so I found that some request still misses son parameters for some POST/PUT/PATCH request. This means the a client generated from the swagger file will not work completely. 

Fix gogs#4088 by activating validation in drone
Should fix gogs#4010.
Martchus pushed a commit to Martchus/gogs that referenced this pull request Aug 27, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants