diff --git a/server/plugin/plg_backend_sftp/index.go b/server/plugin/plg_backend_sftp/index.go index a5b1efdc..5e364588 100644 --- a/server/plugin/plg_backend_sftp/index.go +++ b/server/plugin/plg_backend_sftp/index.go @@ -24,7 +24,7 @@ type Sftp struct { func init() { Backend.Register("sftp", Sftp{}) - SftpCache = NewAppCache() + SftpCache = NewAppCache(1, 1) SftpCache.OnEvict(func(key string, value interface{}) { c := value.(*Sftp) if c == nil {