Skip to content

Commit

Permalink
[CHORE] Switch to openssl (#1344)
Browse files Browse the repository at this point in the history
* Switch over from rustls to vendored openssl
  • Loading branch information
samster25 authored Sep 6, 2023
1 parent dbe6245 commit 62bc3bd
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 137 deletions.
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ repos:
pass_filenames: false
args: [--workspace, --no-default-features]


- id: clippy
name: clippy
description: Lint rust sources
Expand All @@ -111,6 +110,13 @@ repos:
types: [rust]
pass_filenames: false

- id: check-for-rustls
name: check-for-rustls
description: Lint rust sources
entry: ./tools/check_for_rustls.sh
language: system
types: [rust]
pass_filenames: false


- repo: https://github.com/abravalheri/validate-pyproject
Expand Down
231 changes: 102 additions & 129 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion daft/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import fsspec
import pyarrow as pa
from fsspec.implementations.http import HTTPFileSystem
from fsspec.registry import get_filesystem_class
from loguru import logger
from pyarrow.fs import (
Expand Down Expand Up @@ -254,6 +253,8 @@ def _resolve_path_and_filesystem(

def _is_http_fs(fs: FileSystem) -> bool:
"""Returns whether the provided pyarrow filesystem is an HTTP filesystem."""
from fsspec.implementations.http import HTTPFileSystem

return (
isinstance(fs, PyFileSystem)
and isinstance(fs.handler, FSSpecHandler)
Expand Down
Loading

0 comments on commit 62bc3bd

Please sign in to comment.