Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jiuker
Copy link
Contributor

@jiuker jiuker commented Apr 28, 2025

cleanup: use NewWithOptions replace the Deprecated one

Community Contribution License

All community contributions in this pull request are licensed to the project maintainers
under the terms of the Apache 2 license.
By creating this pull request I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 license.

Description

cleanup: use NewWithOptions replace the Deprecated one

Motivation and Context

How to test this PR?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Optimization (provides speedup with no functional changes)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Fixes a regression (If yes, please add commit-id or PR # here)
  • Unit tests added/updated
  • Internal documentation updated
  • Create a documentation update request here

cleanup: use NewWithOptions replace the Deprecated one
@jiuker jiuker requested review from Copilot and harshavardhana and removed request for harshavardhana April 28, 2025 03:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR cleans up client initialization by replacing the deprecated madmin.New call with the new madmin.NewWithOptions.

  • Removes manual error checking and custom transport setup by moving these options into the NewWithOptions call.
  • Simplifies the code by directly returning the result of the NewWithOptions constructor.

@harshavardhana harshavardhana merged commit 9ea14c8 into minio:master Apr 29, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants