source-controller/pkg
Paulo Gomes 68eece48fb
libgit2: optimise mutex on cached connections
Previously the mutex.Lock was acquired before creating
a new connection. The lock would then hold until the
process was finished, and all network latency would be
absorbed by other goroutines trying to establish a new
connection.

Now the lock is acquired after the connection has been
created. The downside of this approach is that concurrent
goroutine may be trying to open a connection to the same
target. The loser in the race will then have to Close the
connection and use the winner's instead.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-04-07 19:10:54 +01:00
..
azure build: properly wire integration tests 2022-03-11 10:43:35 +01:00
gcp Introduce BucketProvider interface 2022-03-01 10:15:10 +01:00
git libgit2: optimise mutex on cached connections 2022-04-07 19:10:54 +01:00
minio Introduce BucketProvider interface 2022-03-01 10:15:10 +01:00
sourceignore sourceignore: return err of nested load 2021-11-23 09:51:44 +01:00