improvement: make comments match code for nauthz example

This commit is contained in:
Greg Heartsfield 2023-02-11 13:36:10 -06:00
parent a16c4e698a
commit 36eaf9fea5

View File

@ -47,7 +47,7 @@ impl Authorization for EventAuthz {
async fn main() -> Result<(), Box<dyn std::error::Error>> { async fn main() -> Result<(), Box<dyn std::error::Error>> {
let addr = "[::1]:50051".parse().unwrap(); let addr = "[::1]:50051".parse().unwrap();
// A simple authorization engine that allows kinds 1, 2, and 3. // A simple authorization engine that allows kinds 0-3
let checker = EventAuthz { let checker = EventAuthz {
allowed_kinds: vec![0,1,2,3], allowed_kinds: vec![0,1,2,3],
}; };