Skip to content

Fix misplaced read semaphore #111

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

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Fix misplaced read semaphore #111

merged 1 commit into from
Nov 27, 2024

Conversation

jakebailey
Copy link
Member

I put this on the wrong FS.

@@ -69,7 +69,6 @@ var _ FS = (*vfs)(nil)
// For paths like `c:/foo/bar`, fsys will be used as though it's rooted at `/` and the path is `/c:/foo/bar`.
func FromIOFS(useCaseSensitiveFileNames bool, fsys fs.FS) FS {
return &vfs{
readSema: osReadSema,
Copy link
Member

Choose a reason for hiding this comment

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

Is there ever a case where a user would want a virtual file system with a read semaphore?

Copy link
Member Author

Choose a reason for hiding this comment

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

I would think not

@jakebailey jakebailey merged commit b46a8ff into main Nov 27, 2024
11 checks passed
@jakebailey jakebailey deleted the jabaile/fix-sema branch November 27, 2024 20:33
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