Skip to content

Commit

Permalink
add db nuke hook for attachment uploader (#17907)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblum committed Jun 12, 2019
1 parent 69be550 commit 952fee6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ func (d *Service) SetupChatModules(ri func() chat1.RemoteInterface) {
store := attachments.NewS3Store(g.GetLog(), g.GetEnv(), g.GetRuntimeDir())
attachmentLRUSize := 1000
g.AttachmentUploader = attachments.NewUploader(g, store, s3signer, ri, attachmentLRUSize)
g.AddDbNukeHook(g.AttachmentUploader, "AttachmentUploader")
sender := chat.NewBlockingSender(g, chat.NewBoxer(g), ri)
g.MessageDeliverer = chat.NewDeliverer(g, sender)

Expand Down

0 comments on commit 952fee6

Please sign in to comment.