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

Fix crash when metadata cache file exist in a directory on startup. #9

Closed
wants to merge 0 commits into from
Closed

Conversation

MarkChuCarroll
Copy link
Contributor

Fix a bug where a new local is created using ":=", instead of just an assignment.

Also, while I'm in the code, fix up logging.

@@ -129,7 +129,8 @@ func GenerateMetadataInfo(fqfn string) (*MetadataInfo, error) {

// If we had a cache, break it into the hashes.
if use_cache {
hashes := make([][]byte, 0, hashCount)
hashes = make([][]byte, 0, hashCount)
fmt.Printf("Hash count = %d\n", hashCount)
Copy link
Owner

Choose a reason for hiding this comment

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

Would prefer not to add this here, or if we do, make it a LogDebug.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, in a hurry, missed that debug statement. All the others were LogInfos, so I got rid of them by search.

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.

None yet

2 participants