Skip to content

Commit 9e48ccf

Browse files
committed
Future implementation for passing app in eos-grpc
1 parent 848fd71 commit 9e48ccf

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pkg/eosclient/eosgrpc/eosgrpc.go

+6-5
Original file line numberDiff line numberDiff line change
@@ -529,12 +529,12 @@ func (c *Client) SetAttr(ctx context.Context, auth eosclient.Authorization, attr
529529
if errorIfExists {
530530
msg.Create = true
531531
}
532-
533-
rq.Command = &erpc.NSRequest_Xattr{Xattr: msg}
534532
// if app != "" {
535-
// rq.Header.Set("app", app)
533+
// msg.App = []byte(app)
536534
// }
537535

536+
rq.Command = &erpc.NSRequest_Xattr{Xattr: msg}
537+
538538
// Now send the req and see what happens
539539
resp, err := c.cl.Exec(appctx.ContextGetClean(ctx), rq)
540540
e := c.getRespError(resp, err)
@@ -579,11 +579,12 @@ func (c *Client) UnsetAttr(ctx context.Context, auth eosclient.Authorization, at
579579
msg.Id = new(erpc.MDId)
580580
msg.Id.Path = []byte(path)
581581

582-
rq.Command = &erpc.NSRequest_Xattr{Xattr: msg}
583582
// if app != "" {
584-
// rq.Header.Set("app", app)
583+
// msg.App = []byte(app)
585584
// }
586585

586+
rq.Command = &erpc.NSRequest_Xattr{Xattr: msg}
587+
587588
// Now send the req and see what happens
588589
resp, err := c.cl.Exec(appctx.ContextGetClean(ctx), rq)
589590

0 commit comments

Comments
 (0)