Skip to content

Commit f247d5d

Browse files
committed
Add migration function with the deprecated message
1 parent 8e276e7 commit f247d5d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

control.go

+5
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,11 @@ type ControlDirSync struct {
624624
Cookie []byte
625625
}
626626

627+
// @deprecated Use NewRequestControlDirSync instead
628+
func NewControlDirSync(flags int64, maxAttrCount int64, cookie []byte) *ControlDirSync {
629+
return NewRequestControlDirSync(flags, maxAttrCount, cookie)
630+
}
631+
627632
// NewRequestControlDirSync returns a dir sync control
628633
func NewRequestControlDirSync(
629634
flags int64, maxAttrCount int64, cookie []byte,

v3/control.go

+5
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,11 @@ type ControlDirSync struct {
635635
Cookie []byte
636636
}
637637

638+
// @deprecated Use NewRequestControlDirSync instead
639+
func NewControlDirSync(flags int64, maxAttrCount int64, cookie []byte) *ControlDirSync {
640+
return NewRequestControlDirSync(flags, maxAttrCount, cookie)
641+
}
642+
638643
// NewRequestControlDirSync returns a dir sync control
639644
func NewRequestControlDirSync(
640645
flags int64, maxAttrCount int64, cookie []byte,

0 commit comments

Comments
 (0)