Skip to content

Commit

Permalink
Future implementation for passing app in eos-grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Mar 7, 2024
1 parent 848fd71 commit 9e48ccf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkg/eosclient/eosgrpc/eosgrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,12 +529,12 @@ func (c *Client) SetAttr(ctx context.Context, auth eosclient.Authorization, attr
if errorIfExists {
msg.Create = true
}

rq.Command = &erpc.NSRequest_Xattr{Xattr: msg}
// if app != "" {
// rq.Header.Set("app", app)
// msg.App = []byte(app)
// }

rq.Command = &erpc.NSRequest_Xattr{Xattr: msg}

// Now send the req and see what happens
resp, err := c.cl.Exec(appctx.ContextGetClean(ctx), rq)
e := c.getRespError(resp, err)
Expand Down Expand Up @@ -579,11 +579,12 @@ func (c *Client) UnsetAttr(ctx context.Context, auth eosclient.Authorization, at
msg.Id = new(erpc.MDId)
msg.Id.Path = []byte(path)

rq.Command = &erpc.NSRequest_Xattr{Xattr: msg}
// if app != "" {
// rq.Header.Set("app", app)
// msg.App = []byte(app)
// }

rq.Command = &erpc.NSRequest_Xattr{Xattr: msg}

// Now send the req and see what happens
resp, err := c.cl.Exec(appctx.ContextGetClean(ctx), rq)

Expand Down

0 comments on commit 9e48ccf

Please sign in to comment.