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

code cleanup #3496

Merged
merged 1 commit into from
Jul 8, 2019
Merged

Conversation

baude
Copy link
Member

@baude baude commented Jul 3, 2019

clean up code identified as problematic by golands inspection

Signed-off-by: baude bbaude@redhat.com

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L labels Jul 3, 2019
@rh-atomic-bot
Copy link
Collaborator

☔ The latest upstream changes (presumably #3472) made this pull request unmergeable. Please resolve the merge conflicts.

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 5, 2019
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 5, 2019
@baude
Copy link
Member Author

baude commented Jul 5, 2019

/test images

1 similar comment
@baude
Copy link
Member Author

baude commented Jul 5, 2019

/test images

@baude
Copy link
Member Author

baude commented Jul 5, 2019

@mheon @rhatdan ptal

@baude
Copy link
Member Author

baude commented Jul 7, 2019

btw, this should also help reduce the work needed to start using golintci.

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baude, giuseppe

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

libpod/oci.go Outdated Show resolved Hide resolved
libpod/oci_linux.go Outdated Show resolved Hide resolved
libpod/runtime_pod_linux.go Outdated Show resolved Hide resolved
clean up code identified as problematic by golands inspection

Signed-off-by: baude <bbaude@redhat.com>
@mheon
Copy link
Member

mheon commented Jul 8, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 8, 2019
@cevich
Copy link
Member

cevich commented Jul 8, 2019

From the small bits I sorta understand, LGTM.

@baude Q: The manager.AllocateLock() calls Do those "lock" the lock for the whole test, or just create one for use? Assuming the first, if the lock releases at the end of tests, isn't this going to make tests run substantially slower (assuming tests are mostly starting containers)?

@mheon
Copy link
Member

mheon commented Jul 8, 2019

@cevich It just allocates a lock for use - the actual locking and unlocking is Lock() and Unlock() on the returned lock

@openshift-merge-robot openshift-merge-robot merged commit ed3acae into containers:master Jul 8, 2019
@baude baude deleted the golandcodeinspect branch December 22, 2019 18:52
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants