Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carolwu-1206 committed Mar 2, 2023
1 parent e90b845 commit da55417
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions kusto/ingest/internal/queued/queued.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ package queued
import (
"context"
"fmt"
"github.com/Azure/azure-pipeline-go/pipeline"
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
"io"
"math/rand"
"net/http"
Expand All @@ -17,6 +15,9 @@ import (
"strings"
"time"

"github.com/Azure/azure-pipeline-go/pipeline"
"github.com/Azure/azure-sdk-for-go/sdk/azcore"

"github.com/Azure/azure-kusto-go/kusto/data/errors"
"github.com/Azure/azure-kusto-go/kusto/ingest/internal/gzip"
"github.com/Azure/azure-kusto-go/kusto/ingest/internal/properties"
Expand Down Expand Up @@ -273,7 +274,8 @@ func (i *Ingestion) upstreamContainer() (*azblob.Client, string, error) {
}

storageURI := mgrResources.Containers[rand.Intn(len(mgrResources.Containers))]
serviceURL := fmt.Sprintf("https://%s.blob.core.windows.net?%s", storageURI.Account(), storageURI.SAS().Encode())
storageUrl := storageURI.URL()
serviceURL := fmt.Sprintf("%s://%s?%s", storageUrl.Scheme, storageUrl.Host, storageURI.SAS().Encode())

client, err := azblob.NewClientWithNoCredential(serviceURL, &azblob.ClientOptions{
ClientOptions: azcore.ClientOptions{
Expand Down

0 comments on commit da55417

Please sign in to comment.