Skip to content

Commit

Permalink
receive: fix CI
Browse files Browse the repository at this point in the history
Signed-off-by: Giedrius Statkevičius <[email protected]>
  • Loading branch information
GiedriusS committed Oct 18, 2024
1 parent 70cce5c commit d0febc7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/receive/capnp_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package receive
import (
"context"
"net"
"unsafe"

"capnproto.org/go/capnp/v3"
"capnproto.org/go/capnp/v3/rpc"
Expand Down Expand Up @@ -95,12 +94,12 @@ func (c *CapNProtoHandler) Write(ctx context.Context, call writecapnp.Writer_wri
}
defer req.Close()

tenant, err := d.TenantBytes()
tenant, err := d.Tenant()
if err != nil {
return err
}

errs.Add(c.writer.Write(ctx, unsafe.String(&tenant[0], len(tenant)), req))
errs.Add(c.writer.Write(ctx, tenant, req))
}

if err := errs.ErrOrNil(); err != nil {
Expand Down

0 comments on commit d0febc7

Please sign in to comment.