mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-07-02 13:59:41 +00:00
refactor(protobufutil): plain import of codec, exclude clashing symbol
Switch the brittle hand-maintained `from codec import <symbol-list>` to a plain `import`, so adding a codec helper no longer means editing the list. Use `except ProtobufError` because codec re-exports its own ProtobufError, which would otherwise clash with our app-layer ./types/protobuf_error one. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
a39a1dea1e
commit
d59b6074bc
@ -21,9 +21,7 @@
|
||||
import std/tables
|
||||
import results
|
||||
import faststreams/inputs
|
||||
from protobuf_serialization/codec import
|
||||
FieldHeader, WireKind, init, number, kind, toBytes, readHeader, readValue,
|
||||
skipValue, puint64, pbytes, fixed64, fixed32
|
||||
import protobuf_serialization/codec except ProtobufError
|
||||
import ./types/protobuf_error
|
||||
|
||||
export results, protobuf_error
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user