(key string, data codec.MultiKey, timestamp time.Time)
| 345 | } |
| 346 | |
| 347 | func (c *Client) updateStaleData(key string, data codec.MultiKey, timestamp time.Time) { |
| 348 | c.staleDataLock.Lock() |
| 349 | defer c.staleDataLock.Unlock() |
| 350 | |
| 351 | c.staleData[key] = staleData{ |
| 352 | data: data, |
| 353 | timestamp: timestamp, |
| 354 | } |
| 355 | } |
| 356 | |
| 357 | func (c *Client) getStaleData(key string) codec.MultiKey { |
| 358 | c.staleDataLock.RLock() |
no outgoing calls