-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Create a separate `DownloadBatch.hs` module for internal and oss build (as internal one will download batch from cas) Reviewed By: donsbot Differential Revision: D69668663 fbshipit-source-id: e5c2af667ea7f17091f0a88178a422eb1988ad87
- Loading branch information
1 parent
dfd6628
commit 0de1287
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{- | ||
Copyright (c) Meta Platforms, Inc. and affiliates. | ||
All rights reserved. | ||
This source code is licensed under the BSD-style license found in the | ||
LICENSE file in the root directory of this source tree. | ||
-} | ||
|
||
module Glean.Server.DownloadBatch | ||
( downloadBatch | ||
) where | ||
|
||
import Glean.Types as Thrift | ||
import Control.Exception | ||
|
||
downloadBatch :: Thrift.BatchDescriptor -> IO Thrift.Batch | ||
downloadBatch _ = throwIO $ | ||
Thrift.Exception "couldn't download batch from location" |