mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-22 00:59:07 -05:00
fix: build gRPC server code
This will allow the gRPC example to compile. Fix for https://github.com/scsibug/nostr-rs-relay/issues/141
This commit is contained in:
parent
b1957ab2b1
commit
79abd981e1
|
@ -1,6 +1,6 @@
|
||||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
tonic_build::configure()
|
tonic_build::configure()
|
||||||
.build_server(false)
|
.build_server(true)
|
||||||
.protoc_arg("--experimental_allow_proto3_optional")
|
.protoc_arg("--experimental_allow_proto3_optional")
|
||||||
.compile(&["../../proto/nauthz.proto"], &["../../proto"])?;
|
.compile(&["../../proto/nauthz.proto"], &["../../proto"])?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user