mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Make storage events take a tag for the backend instead of a string
This commit is contained in:
parent
989e4adf90
commit
32ae8f4eaa
15 changed files with 39 additions and 38 deletions
|
@ -14,11 +14,11 @@
|
|||
|
||||
redef exit_only_after_terminate = T;
|
||||
|
||||
event Storage::backend_opened(tag: string, config: any) {
|
||||
event Storage::backend_opened(tag: Storage::Backend, config: any) {
|
||||
print "Storage::backend_opened", tag, config;
|
||||
}
|
||||
|
||||
event Storage::backend_lost(tag: string, config: any, reason: string) {
|
||||
event Storage::backend_lost(tag: Storage::Backend, config: any, reason: string) {
|
||||
print "Storage::backend_lost", tag, config, reason;
|
||||
terminate();
|
||||
}
|
||||
|
|
|
@ -12,11 +12,11 @@
|
|||
@load base/frameworks/storage/sync
|
||||
@load policy/frameworks/storage/backend/redis
|
||||
|
||||
event Storage::backend_opened(tag: string, config: any) {
|
||||
event Storage::backend_opened(tag: Storage::Backend, config: any) {
|
||||
print "Storage::backend_opened", tag, config;
|
||||
}
|
||||
|
||||
event Storage::backend_lost(tag: string, config: any, reason: string) {
|
||||
event Storage::backend_lost(tag: Storage::Backend, config: any, reason: string) {
|
||||
print "Storage::backend_lost", tag, config, reason;
|
||||
terminate();
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
redef exit_only_after_terminate = T;
|
||||
|
||||
event Storage::backend_opened(tag: string, config: any) {
|
||||
event Storage::backend_opened(tag: Storage::Backend, config: any) {
|
||||
print "Storage::backend_opened", tag, config;
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
redef exit_only_after_terminate = T;
|
||||
|
||||
event Storage::backend_opened(tag: string, config: any) {
|
||||
event Storage::backend_opened(tag: Storage::Backend, config: any) {
|
||||
print "Storage::backend_opened", tag, config;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue