Skip to content

Commit 6158184

Browse files
authored
TD-329: Add explicit Rollback operation (#24)
1 parent 8bb5f04 commit 6158184

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

proto/limiter.thrift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,28 @@ exception ForbiddenOperationAmount {
5757
}
5858

5959
service Limiter {
60+
6061
Limit Get(1: LimitID id, 2: Clock clock, 3: LimitContext context) throws (
6162
1: LimitNotFound e1,
6263
2: base.InvalidRequest e2
6364
)
65+
6466
Clock Hold(1: LimitChange change, 2: Clock clock, 3: LimitContext context) throws (
6567
1: LimitNotFound e1,
6668
3: base.InvalidRequest e2
6769
)
70+
6871
Clock Commit(1: LimitChange change, 2: Clock clock, 3: LimitContext context) throws (
6972
1: LimitNotFound e1,
7073
2: LimitChangeNotFound e2,
7174
3: base.InvalidRequest e3,
7275
4: ForbiddenOperationAmount e4
7376
)
77+
78+
Clock Rollback(1: LimitChange change, 2: Clock clock, 3: LimitContext context) throws (
79+
1: LimitNotFound e1,
80+
2: LimitChangeNotFound e2,
81+
3: base.InvalidRequest e3
82+
)
83+
7484
}

0 commit comments

Comments
 (0)