forked from TrueCloudLab/frostfs-sdk-go
[#128] session: Sync comments and constructors
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
6d3d91f889
commit
2fff3fd9ec
3 changed files with 9 additions and 9 deletions
|
@ -21,12 +21,12 @@ type ObjectContext session.ObjectSessionContext
|
|||
func NewObjectContext() *ObjectContext {
|
||||
v2 := new(session.ObjectSessionContext)
|
||||
|
||||
return ObjectContextFromV2(v2)
|
||||
return NewObjectContextFromV2(v2)
|
||||
}
|
||||
|
||||
// ObjectContextFromV2 wraps session.ObjectSessionContext
|
||||
// NewObjectContextFromV2 wraps session.ObjectSessionContext
|
||||
// into ObjectContext.
|
||||
func ObjectContextFromV2(v *session.ObjectSessionContext) *ObjectContext {
|
||||
func NewObjectContextFromV2(v *session.ObjectSessionContext) *ObjectContext {
|
||||
return (*ObjectContext)(v)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue