Commit 33a1648
committed
vtprotocodec: user codecV2 for grpc client/server
Switch to use codecV2 backed by the default buffer pool to handle all
Marshaling/Unmarshaling by grpc clients/servers. The default buffer pool
is already setup here.
```
server/util/grpc_client/grpc_client.go
254: experimental.WithBufferPool(mem.DefaultBufferPool()),
server/util/grpc_server/grpc_server.go
240: experimental.BufferPool(mem.DefaultBufferPool()),
```
This does not affect the manual Marshaling/Unmarshaling that we does via
`server/util/proto.{Marshal,Unmarshal}()`. These should still use V1 for
the time being.1 parent b270096 commit 33a1648
1 file changed
+4
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
40 | 18 | | |
41 | 19 | | |
42 | 20 | | |
| |||
80 | 58 | | |
81 | 59 | | |
82 | 60 | | |
83 | | - | |
84 | 61 | | |
85 | 62 | | |
86 | 63 | | |
| |||
0 commit comments