Skip to content

Commit

Permalink
change brotli writer
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Aug 20, 2024
1 parent 9b1a773 commit 74faf35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion go/common/compression/data_compression_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ func (cs *brotliDataCompressionService) Decompress(in []byte) ([]byte, error) {

func (cs *brotliDataCompressionService) compress(in []byte, level int) ([]byte, error) {
var buf bytes.Buffer
writer := brotli.NewWriterLevel(&buf, level)
// writer := brotli.NewWriterLevel(&buf, level)
writer := brotli.NewWriterV2(&buf, level)
_, err := writer.Write(in)
if closeErr := writer.Close(); err == nil {
err = closeErr
Expand Down
7 changes: 4 additions & 3 deletions go/enclave/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package main

import (
"fmt"
"os"
"runtime/pprof"
"time"

"github.com/ten-protocol/go-ten/go/common/container"
tenflag "github.com/ten-protocol/go-ten/go/common/flag"
"github.com/ten-protocol/go-ten/go/config"
enclavecontainer "github.com/ten-protocol/go-ten/go/enclave/container"
"os"
"runtime/pprof"
"time"
)

// Runs an Obscuro enclave as a standalone process.
Expand Down

0 comments on commit 74faf35

Please sign in to comment.