Skip to content

Change Adapter Begin() signature to accept an AdapterConfig interface#1774

Merged
technoweenie merged 2 commits intotq-masterfrom
tq/adapter-begin-interface
Dec 15, 2016
Merged

Change Adapter Begin() signature to accept an AdapterConfig interface#1774
technoweenie merged 2 commits intotq-masterfrom
tq/adapter-begin-interface

Conversation

@technoweenie
Copy link
Contributor

This implements my suggested change of the adapter Begin() interface, to accept a configuration object interface, instead of a maxConcurrency int argument. This gives us flexibility to add more properties if needed without breaking the public interface. If we decided to add something like MaxSchmeckles() int, adapters would keep working without ever having to deal with schmeckles if they don't need to.

The PR is currently based on #1772, which is about to merge. Once merged, the base will change to tq-master.

@ttaylorr ttaylorr mentioned this pull request Dec 15, 2016
5 tasks
Copy link
Contributor

@ttaylorr ttaylorr left a comment

Choose a reason for hiding this comment

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

🤘

@ttaylorr ttaylorr changed the base branch from tq-object to tq-master December 15, 2016 17:43
@technoweenie technoweenie merged commit 3823a03 into tq-master Dec 15, 2016
@technoweenie technoweenie deleted the tq/adapter-begin-interface branch December 15, 2016 18:39
chrisd8088 added a commit to chrisd8088/git-lfs that referenced this pull request Jul 21, 2021
We update the comment describing the Begin method of the
Adapter interface to match that for the corresponding method
of the SSH transfer adapter, which was added in commit
594f8e3 of PR git-lfs#4446.
The older comment for the interface description has been
out of sync with the actual method signature since at least
commit 303156e of PR git-lfs#1774,
when the maxConcurrency integer argument was replaced with
the current "cfg" AdapterConfig one.
pcal43 pushed a commit to pcal43/git-lfs-hack that referenced this pull request Jul 22, 2021
We update the comment describing the Begin method of the
Adapter interface to match that for the corresponding method
of the SSH transfer adapter, which was added in commit
594f8e3 of PR git-lfs#4446.
The older comment for the interface description has been
out of sync with the actual method signature since at least
commit 303156e of PR git-lfs#1774,
when the maxConcurrency integer argument was replaced with
the current "cfg" AdapterConfig one.
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.

2 participants