Merge pull request #1847 from git-lfs/custom-transfer-terminate
Custom transfer terminate message should contain `event` not `type`
This commit is contained in:
commit
d912f6e6cf
@ -129,8 +129,10 @@ Or if there was an error:
|
||||
|
||||
#### Stage 2: 0..N Transfers
|
||||
|
||||
After the initiation exchange, git-lfs will send any number of transfer
|
||||
requests to the stdin of the transfer process.
|
||||
After the initiation exchange, git-lfs will send any number of transfer
|
||||
requests to the stdin of the transfer process, in a serial sequence. Once a
|
||||
transfer request is sent to the process, it awaits a completion response before
|
||||
sending the next request.
|
||||
|
||||
##### Uploads
|
||||
|
||||
|
@ -103,6 +103,8 @@ begin_test "custom-transfer-upload-download"
|
||||
grep "xfer\[lfstest-customadapter\]:" fetchcustom.log
|
||||
grep "11 of 11 files" fetchcustom.log
|
||||
|
||||
grep "Terminating test custom adapter gracefully" fetchcustom.log
|
||||
|
||||
objectlist=`find .git/lfs/objects -type f`
|
||||
[ "$(echo "$objectlist" | wc -l)" -eq 11 ]
|
||||
)
|
||||
|
@ -86,7 +86,7 @@ func NewCustomAdapterDownloadRequest(oid string, size int64, action *Action) *cu
|
||||
}
|
||||
|
||||
type customAdapterTerminateRequest struct {
|
||||
MessageType string `json:"type"`
|
||||
Event string `json:"event"`
|
||||
}
|
||||
|
||||
func NewCustomAdapterTerminateRequest() *customAdapterTerminateRequest {
|
||||
|
Loading…
Reference in New Issue
Block a user