Skip to content

Commit

Permalink
fixed #707
Browse files Browse the repository at this point in the history
  • Loading branch information
IrineSistiana committed Sep 18, 2023
1 parent bb8caa9 commit 5416f7b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion plugin/executable/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const (
expiredMsgTtl = 5

minimumChangesToDump = 1024
dumpHeader = "mosdns_cache_v1"
dumpHeader = "mosdns_cache_v2"
dumpBlockSize = 128
dumpMaximumBlockLength = 1 << 20 // 1M block. 8kb pre entry. Should be enough.
)
Expand Down
18 changes: 9 additions & 9 deletions plugin/executable/cache/dump.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugin/executable/cache/dump.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package cache;
option go_package = "plugin/executable/cache";

message CachedEntry {
string key = 1;
bytes key = 1;
bytes msg = 2;
int64 cache_expiration_time = 3;
int64 msg_expiration_time = 4;
Expand Down

0 comments on commit 5416f7b

Please sign in to comment.