Store context type in metadata to make retrocompatibility with previous contexts easier (potentially switching back and forth)

This commit is contained in:
Guillaume Tardif 2020-06-10 14:07:35 +02:00
parent 8930563a25
commit e7682682fb
8 changed files with 147 additions and 48 deletions

View file

@ -49,13 +49,13 @@ func New(ctx context.Context) (*Client, error) {
return nil, err
}
service, err := backend.Get(ctx, cc.Type)
service, err := backend.Get(ctx, cc.Type())
if err != nil {
return nil, err
}
return &Client{
backendType: cc.Type,
backendType: cc.Type(),
bs: service,
}, nil
}