This commit is contained in:
Nicolas Gaborel 2021-03-02 18:02:17 +01:00
Π ΠΎΠ΄ΠΈΡ‚Π΅Π»ΡŒ aa1be2f753
ΠšΠΎΠΌΠΌΠΈΡ‚ 28dc0b0703
1 ΠΈΠ·ΠΌΠ΅Π½Ρ‘Π½Π½Ρ‹Ρ… Ρ„Π°ΠΉΠ»ΠΎΠ²: 2 Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠΉ ΠΈ 1 ΡƒΠ΄Π°Π»Π΅Π½ΠΈΠΉ

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -29,6 +29,7 @@ import (
"context"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/url"
"sync"
@ -683,7 +684,7 @@ func startConsumerSpanFromContext(ctx context.Context, operationName string) (ta
// WithEventhubInfoInBlobPath configures the LeaserCheckpointerOption with a blob path
func WithEventhubInfoInBlobPath(ehInfo *conn.ParsedConn, consumerGroup string) LeaserCheckpointerOption {
return func(ls *LeaserCheckpointer) error {
ls.blobPathPrefix = ehInfo.Namespace + "." + ehInfo.Suffix + "/" + ehInfo.HubName + "/" + consumerGroup + "/"
ls.blobPathPrefix = fmt.Sprintf("%s.%s/%s/%s/", ehInfo.Namespace, ehInfo.Suffix, ehInfo.HubName, consumerGroup)
return nil
}
}