From 23184192913ad30097a6f5a5d7de4bc2633d3c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 25 Aug 2022 21:24:12 -0400 Subject: [PATCH] sector import: Fix missing perm tag on SectorReceive --- api/api_storage.go | 2 +- api/proxy_gen.go | 2 +- build/openrpc/miner.json.gz | Bin 15743 -> 15711 bytes documentation/en/api-v0-methods-miner.md | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/api_storage.go b/api/api_storage.go index 02af793c9..32309f388 100644 --- a/api/api_storage.go +++ b/api/api_storage.go @@ -146,7 +146,7 @@ type StorageMiner interface { // SectorNumFree drops a sector reservation SectorNumFree(ctx context.Context, name string) error //perm:admin - SectorReceive(ctx context.Context, meta RemoteSectorMeta) error + SectorReceive(ctx context.Context, meta RemoteSectorMeta) error //perm:admin // WorkerConnect tells the node to connect to workers RPC WorkerConnect(context.Context, string) error //perm:admin retry:true diff --git a/api/proxy_gen.go b/api/proxy_gen.go index fd31166a9..6cb86ce54 100644 --- a/api/proxy_gen.go +++ b/api/proxy_gen.go @@ -846,7 +846,7 @@ type StorageMinerStruct struct { SectorPreCommitPending func(p0 context.Context) ([]abi.SectorID, error) `perm:"admin"` - SectorReceive func(p0 context.Context, p1 RemoteSectorMeta) error `` + SectorReceive func(p0 context.Context, p1 RemoteSectorMeta) error `perm:"admin"` SectorRemove func(p0 context.Context, p1 abi.SectorNumber) error `perm:"admin"` diff --git a/build/openrpc/miner.json.gz b/build/openrpc/miner.json.gz index 99ca3b3666cabaaf974b06194236752f869832ef..4912f83066e10949969be4d4b166088da92f0aa2 100644 GIT binary patch delta 5504 zcmV-`6@Tjgdf$4m5h#ClUKK7mP}Q6=3MqrglN}?)54F5Hao3zar(Q0mm(Cy zqG`oVXD)kriagi)s7<8aw?t|tyRNZ*hv*;NPCF9!w)hX@5aYMN1WnnqQ-3+xk4yhY z@PWVl;%W%XT5wv7g{U3P{Brn>E;j>t36o19h>o!VBf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6wO~LBb!@bL zq1G?d`h{A*Q0o`^!Tdt}Y7&|B@ApR2@!=$~%HFdE_b+lCpHu)Zi%nYeza%zk7tl*$ zllJ+%BsNKD{<7F41^UZklNRMKiA~z2^OD%4eK;?NO+-3}2@efB?tcgie|_2;4|@}T zleTkHC8U@li9PA{2ea{L&>zLEsMxNpdE68Q_@Fl!&wA6*V49e?;o)dFosEa1!=`PO z9Q0cIyp(;uH#DD=?|Vh_DRI9~G%uC^b^P`cG&3AYFQ@>NG1{@`z7A?-&u&8pWd?c; zdj(7SX|f!vvFFc-UvsLUe?Iv)tqU3<{|5Z_J0$;<#lL6dpHvF_MgB3ZVBI4J*(TQE z#x@{DZCuZbIq=)Ko;I$hjq7RSdR{87N1_bc7@ud^DYP*@dmQ4>#`v@`K5dMTP!SGV zBI5FrH+N{;9wfZbPN5C;X+wR!r=x_uqWU(}r}j=Ewn=EUK&u5>e=X2zfmRFrU|L{9 zT<t5|iT!@t*J1zrN+DFA- uE`2pnw_i3sPoAqYdUID&?rHV+QE#X{J>5S2zW@LL|NnV423Sau1OotVWTW2z diff --git a/documentation/en/api-v0-methods-miner.md b/documentation/en/api-v0-methods-miner.md index 32912980b..8960857bc 100644 --- a/documentation/en/api-v0-methods-miner.md +++ b/documentation/en/api-v0-methods-miner.md @@ -3153,9 +3153,9 @@ Response: ``` ### SectorReceive -There are not yet any comments for this method. -Perms: + +Perms: admin Inputs: ```json