This commit is contained in:
Erik Brakkee 2024-08-16 00:30:28 +02:00
parent e36aaeea36
commit 99fe461c77

View File

@ -52,7 +52,7 @@ type Client struct {
// //
// Concurrency design: // Concurrency design:
// 1. State is immutable // 1. State is immutable
// 2. The MatchMakers uses copy-on-write and never modifies a state directly. // 2. The MatchMaker uses copy-on-write and never modifies a state directly.
// 3. the matchmaker modifies the expiry time of the agent. This is dealt with using the // 3. the matchmaker modifies the expiry time of the agent. This is dealt with using the
// sync/atomic package by storing the expiry time as an int64 using time.Time.UnixNano() // sync/atomic package by storing the expiry time as an int64 using time.Time.UnixNano()