Skip to content

Conversation

@xzj
Copy link
Contributor

@xzj xzj commented Mar 31, 2017

When we hash a file, normally we expect it will be closed automatically by the hash function. So i think it's better to close the file automatically after digesting it using the IDigest protocol.

@xzj
Copy link
Contributor Author

xzj commented Apr 1, 2017

In fact, I think it is a bug. Because there is no way to close the input stream of the specified file.

@niwinz niwinz merged commit f9ae8ff into funcool:master Apr 4, 2017
@niwinz
Copy link
Member

niwinz commented Apr 4, 2017

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants