chore: Improve CI builds by caching Go modules (#528)

* chore: Improve CI builds by caching Go modules

* Skip running with `race` on non-Linux systems

* Fix darwin file descriptor error

* Fix log after close

* Improve PostgreSQL test speeds

* Fix parallel connections with PostgreSQL tests

* Fix CI flake

* Separate test/go into PostgreSQL
This commit is contained in:
Kyle Carberry
2022-03-22 17:09:04 -05:00
committed by GitHub
parent ebae1b9af9
commit 26d24f4508
7 changed files with 172 additions and 54 deletions
+3
View File
@@ -354,6 +354,9 @@ func (c *Conn) AddRemoteCandidate(i webrtc.ICECandidateInit) {
go func() {
c.negotiateMutex.Lock()
defer c.negotiateMutex.Unlock()
if c.isClosed() {
return
}
c.opts.Logger.Debug(context.Background(), "accepting candidate", slog.F("candidate", i.Candidate))
err := c.rtc.AddICECandidate(i)
if err != nil {