go-capnp icon indicating copy to clipboard operation
go-capnp copied to clipboard

Cap'n Proto library and code generator for Go

Results 87 go-capnp issues
Sort by recently updated
recently updated
newest added

Also, document the fact that ClientPromise.Fulfill steals the reference. Mixing this up was the root cause of the issue. Specifically both Promise.ReleaseClients() and Message.Reset() were releasing the same clients, causing...

This only ever has length 1, so let's just use a pointer. I would hazard a guess this is a holdover from the logic for .Join() that was removed.

Documentation added in #308 makes this redundant; the ReleaseFuncs returned by the transport already releases any caps in the message, and in all cases this was called immediately before releasing...

While picking through the code trying to solve #306, I discovered a few bits of the API that were not adequately documented, so I fixed the docs. See individual commits.

Presumably at some point this was renamed.

When attempting to upload a large directory with ocap-merkledag, I see an imported capability being released, and then subsequently passed to another call, resulting an exception due to the invalid...

bug

While investigating #303, @zenhack and I observed that most calls to `Conn.sendMessage` were ignoring the returned error. The immediately problematic call sites have been fixed, but we'll want to respond...

The following schema file is compiled without the `"capnproto.org/go/capnp/v3"` import statement ``` using Go = import "/go.capnp"; @0xdf0f779c8b0574be; $Go.package("bn"); $Go.import("github.com/blocknative/bn/internal/api/bn"); enum Region { unknown @0; usEast1 @1; euCentral1 @2; apSoutheast1...

bug

A substantial amount of the complexity of the transport package is due the interface: we pass contexts to functions that do IO, and then jump through hoops to respect those...

This is still WIP; what's left: - [ ] Finish up the various state logic (state.go) - [ ] Test everything thoroughly and fix all the bugs - [x] Expose...