From 869d59f6bf193c1ee4e7d7523cf1fd90fd07598e Mon Sep 17 00:00:00 2001 From: Airat Arifullin Date: Mon, 5 Aug 2024 23:09:20 +0300 Subject: [PATCH] [#249] session: Support patch verb Signed-off-by: Airat Arifullin --- session/object.go | 1 + session/object_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/session/object.go b/session/object.go index 86ea7cb..3641bd1 100644 --- a/session/object.go +++ b/session/object.go @@ -237,6 +237,7 @@ const ( VerbObjectDelete // Delete rpc VerbObjectRange // GetRange rpc VerbObjectRangeHash // GetRangeHash rpc + VerbObjectPatch // Patch rpc ) // ForVerb specifies the object operation of the session scope. Each diff --git a/session/object_test.go b/session/object_test.go index 6990ff8..59ff8d6 100644 --- a/session/object_test.go +++ b/session/object_test.go @@ -599,6 +599,7 @@ func TestObject_ForVerb(t *testing.T) { session.VerbObjectRangeHash: v2session.ObjectVerbRangeHash, session.VerbObjectRange: v2session.ObjectVerbRange, session.VerbObjectDelete: v2session.ObjectVerbDelete, + session.VerbObjectPatch: v2session.ObjectVerbPatch, } { val.ForVerb(from)