Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sivchari
Copy link
Contributor

@sivchari sivchari commented Oct 9, 2021

I fixed issue go vet reports.

go vet result

...
# entgo.io/ent/entc/integration/template/ent
entc/integration/template/ent/node.go:228:7: load passes lock by value: entgo.io/ent/entc/integration/template/ent.tables contains sync.Once contains sync.Mutex
...

Copy link
Member

@a8m a8m left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this @sivchari 🙏. Can you please update the template that generates this file? See https://github.com/ent/ent/blob/master/entc/integration/template/ent/template/node.tmpl#L178

Also, the receiver argument is not needed (i.e. func (t *tables) => func (*tables)).

@sivchari
Copy link
Contributor Author

I fixed !

Copy link
Member

@a8m a8m left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @sivchari

@a8m a8m merged commit eee77df into ent:master Oct 11, 2021
@a8m
Copy link
Member

a8m commented Oct 11, 2021

@all-contributors please add @sivchari for code.

@allcontributors
Copy link
Contributor

@a8m

I've put up a pull request to add @sivchari! 🎉

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