diff options
author | Paulo Gomes <pjbgf@linux.com> | 2024-03-16 08:54:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-16 08:54:01 +0000 |
commit | feaeb36df2438dd5f861be2c1041f4e07c126233 (patch) | |
tree | 5956f395058d4aeeb0d5bd53e89e8557d51286c0 /plumbing/transport/http/transport.go | |
parent | 7959a42552a99b2e2df21a6aacafc97b2b5c7457 (diff) | |
parent | dcf0639a168c441de6753c6644322e6b619499ae (diff) | |
download | go-git-feaeb36df2438dd5f861be2c1041f4e07c126233.tar.gz |
Merge pull request #937 from matejrisek/feature/rename-short-fields
Replace short field names with more descriptive ones.
Diffstat (limited to 'plumbing/transport/http/transport.go')
-rw-r--r-- | plumbing/transport/http/transport.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plumbing/transport/http/transport.go b/plumbing/transport/http/transport.go index 052f3c8..c8db389 100644 --- a/plumbing/transport/http/transport.go +++ b/plumbing/transport/http/transport.go @@ -14,21 +14,21 @@ type transportOptions struct { } func (c *client) addTransport(opts transportOptions, transport *http.Transport) { - c.m.Lock() + c.mutex.Lock() c.transports.Add(opts, transport) - c.m.Unlock() + c.mutex.Unlock() } func (c *client) removeTransport(opts transportOptions) { - c.m.Lock() + c.mutex.Lock() c.transports.Remove(opts) - c.m.Unlock() + c.mutex.Unlock() } func (c *client) fetchTransport(opts transportOptions) (*http.Transport, bool) { - c.m.RLock() + c.mutex.RLock() t, ok := c.transports.Get(opts) - c.m.RUnlock() + c.mutex.RUnlock() if !ok { return nil, false } |