(ctx context.Context)
| 183 | } |
| 184 | |
| 185 | func (m *XidMap) attachNamespace(ctx context.Context) context.Context { |
| 186 | if m.dg == nil { |
| 187 | return ctx |
| 188 | } |
| 189 | |
| 190 | // Need to attach JWT because slash uses alpha as zero proxy. |
| 191 | md, ok := metadata.FromOutgoingContext(ctx) |
| 192 | if !ok { |
| 193 | md = metadata.New(nil) |
| 194 | } |
| 195 | md.Set("accessJwt", m.dg.GetJwt().AccessJwt) |
| 196 | ctx = metadata.NewOutgoingContext(ctx, md) |
| 197 | return ctx |
| 198 | } |
| 199 | |
| 200 | func (m *XidMap) relogin() error { |
| 201 | if m.dg == nil { |