Skip to content

Commit

Permalink
[modify] send raw request without retry
Browse files Browse the repository at this point in the history
  • Loading branch information
shabicheng committed Feb 26, 2020
1 parent 5b38e51 commit bc942f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion log_project.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package sls

import (
"context"
"encoding/json"
"fmt"

Expand Down Expand Up @@ -90,7 +91,8 @@ func (p *LogProject) WithRetryTimeout(timeout time.Duration) *LogProject {
// RawRequest send raw http request to LogService and return the raw http response
// @note you should call http.Response.Body.Close() to close body stream
func (p *LogProject) RawRequest(method, uri string, headers map[string]string, body []byte) (*http.Response, error) {
return request(p, method, uri, headers, body)
ctx := context.Background()
return realRequest(ctx, p, method, uri, headers, body)
}

// ListLogStore returns all logstore names of project p.
Expand Down

0 comments on commit bc942f8

Please sign in to comment.