feat: implement security, discovery, history, file transfer, web UI (P0-P3)
This commit is contained in:
@@ -21,10 +21,10 @@ const defaultCacheSize = 20
|
||||
// Filter prevents clipboard sync loops.
|
||||
type Filter struct {
|
||||
mu sync.Mutex
|
||||
origin string // our hostname
|
||||
cache []string // ring buffer of content hashes
|
||||
cacheIdx int // write position in ring buffer
|
||||
lastWriteTs int64 // nanosecond timestamp of our last local write
|
||||
origin string // our hostname
|
||||
cache []string // ring buffer of content hashes
|
||||
cacheIdx int // write position in ring buffer
|
||||
lastWriteTs int64 // nanosecond timestamp of our last local write
|
||||
}
|
||||
|
||||
// NewFilter creates a new deduplication filter for the given origin hostname.
|
||||
|
||||
Reference in New Issue
Block a user