Connection.cs fixes

This commit is contained in:
aedampir@gmail.com
2016-03-29 17:36:34 +07:00
parent 655dde8081
commit 0a71cb4abe
+1 -1
View File
@@ -142,7 +142,7 @@ namespace Octokit
/// <returns><seealso cref="ApiInfo"/> representing the information returned as part of an Api call</returns>
public ApiInfo GetLastApiInfo()
{
// We've choosen to not wrap the _lastApiInfo in a lock. Originally the code was returning a reference - so there was a danger of
// We've chosen to not wrap the _lastApiInfo in a lock. Originally the code was returning a reference - so there was a danger of
// on thread writing to the object while another was reading. Now we are cloning the ApiInfo on request - thus removing the need (or overhead)
// of putting locks in place.
// See https://github.com/octokit/octokit.net/pull/855#discussion_r36774884