()
| 198 | } |
| 199 | |
| 200 | func (m *XidMap) relogin() error { |
| 201 | if m.dg == nil { |
| 202 | return nil |
| 203 | } |
| 204 | |
| 205 | ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second) |
| 206 | defer cancel() |
| 207 | return m.dg.Relogin(ctx) |
| 208 | } |
| 209 | |
| 210 | func (m *XidMap) shardFor(xid string) *shard { |
| 211 | fp := z.MemHashString(xid) |