aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/http/transport.go
diff options
context:
space:
mode:
authorPaulo Gomes <pjbgf@linux.com>2024-03-16 08:54:01 +0000
committerGitHub <noreply@github.com>2024-03-16 08:54:01 +0000
commitfeaeb36df2438dd5f861be2c1041f4e07c126233 (patch)
tree5956f395058d4aeeb0d5bd53e89e8557d51286c0 /plumbing/transport/http/transport.go
parent7959a42552a99b2e2df21a6aacafc97b2b5c7457 (diff)
parentdcf0639a168c441de6753c6644322e6b619499ae (diff)
downloadgo-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.go12
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
}