(ctx context.Context, connID string)
| 221 | return SessionTokens{Req: reqSAS, Res: resSAS}, nil |
| 222 | } |
| 223 | |
| 224 | func (p *queueDriver) NewTransport(_ context.Context, connID string, tokens SessionTokens, isInitiator bool) (Transport, error) { |
| 225 | reqName, resName := p.cfg.reqPrefix+"-"+connID, p.cfg.resPrefix+"-"+connID |
| 226 | var tx, rx *azqueue.QueueClient |
| 227 | if isInitiator { |
| 228 | var err error |
| 229 | tx, err = azqueue.NewQueueClientWithNoCredential(p.ep.JoinURL(reqName, tokens.Req), nil) |
| 230 | if err != nil { |
| 231 | return nil, fmt.Errorf("%w: %v", ErrClientCreationFailed, err) |
| 232 | } |
| 233 | rx, err = azqueue.NewQueueClientWithNoCredential(p.ep.JoinURL(resName, tokens.Res), nil) |
nothing calls this directly
no outgoing calls
no test coverage detected