Skip to content

Commit

Permalink
Add migration function with the deprecated message
Browse files Browse the repository at this point in the history
  • Loading branch information
t2y committed Sep 6, 2023
1 parent 8e276e7 commit f247d5d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions control.go
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,11 @@ type ControlDirSync struct {
Cookie []byte
}

// @deprecated Use NewRequestControlDirSync instead
func NewControlDirSync(flags int64, maxAttrCount int64, cookie []byte) *ControlDirSync {
return NewRequestControlDirSync(flags, maxAttrCount, cookie)
}

// NewRequestControlDirSync returns a dir sync control
func NewRequestControlDirSync(
flags int64, maxAttrCount int64, cookie []byte,
Expand Down
5 changes: 5 additions & 0 deletions v3/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,11 @@ type ControlDirSync struct {
Cookie []byte
}

// @deprecated Use NewRequestControlDirSync instead
func NewControlDirSync(flags int64, maxAttrCount int64, cookie []byte) *ControlDirSync {
return NewRequestControlDirSync(flags, maxAttrCount, cookie)
}

// NewRequestControlDirSync returns a dir sync control
func NewRequestControlDirSync(
flags int64, maxAttrCount int64, cookie []byte,
Expand Down

0 comments on commit f247d5d

Please sign in to comment.