Skip to content

Commit

Permalink
rgw: stop using context.TODO() and use parent ctx
Browse files Browse the repository at this point in the history
The clusterInfo has the parent Context so let's use it.

Signed-off-by: Sébastien Han <seb@redhat.com>
  • Loading branch information
leseb committed Oct 25, 2021
1 parent cfe59ec commit 3bfdfd6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/operator/ceph/object/rgw.go
Expand Up @@ -18,7 +18,6 @@ limitations under the License.
package object

import (
"context"
"fmt"
"io/ioutil"
"net/http"
Expand Down Expand Up @@ -322,7 +321,7 @@ func BuildDNSEndpoint(domainName string, port int32, secure bool) string {

// GetTLSCACert fetch cacert for internal RGW requests
func GetTlsCaCert(objContext *Context, objectStoreSpec *cephv1.ObjectStoreSpec) ([]byte, error) {
ctx := context.TODO()
ctx := objContext.clusterInfo.Context
var (
tlsCert []byte
err error
Expand Down

0 comments on commit 3bfdfd6

Please sign in to comment.