Selaa lähdekoodia

chore: update roadmap (#1948)

Kevin Wan 2 vuotta sitten
vanhempi
sitoutus
321a20add6

+ 1 - 1
ROADMAP.md

@@ -22,7 +22,7 @@ We hope that the items listed below will inspire further engagement from the com
 ## 2022
 - [x] Support `context` in redis related methods for timeout and tracing
 - [x] Support `context` in sql related methods for timeout and tracing
-- [ ] Support `context` in mongodb related methods for timeout and tracing
+- [x] Support `context` in mongodb related methods for timeout and tracing
 - [x] Add `httpc.Do` with HTTP call governance, like circuit breaker etc.
 - [ ] Support `goctl doctor` command to report potential issues for given service
 - [ ] Support `goctl mock` command to start a mocking server with given `.api` file

+ 1 - 0
core/bloom/bloom.go

@@ -69,6 +69,7 @@ func (f *Filter) Exists(data []byte) (bool, error) {
 	if err != nil {
 		return false, err
 	}
+
 	return isSet, nil
 }
 

+ 4 - 0
core/logx/rotatelogger_test.go

@@ -98,6 +98,10 @@ func TestRotateLoggerRotate(t *testing.T) {
 	case *os.LinkError:
 		// avoid rename error on docker container
 		assert.Equal(t, syscall.EXDEV, v.Err)
+	case *os.PathError:
+		// ignore remove error for tests,
+		// files are cleaned in GitHub actions.
+		assert.Equal(t, "remove", v.Op)
 	default:
 		assert.Nil(t, err)
 	}

+ 0 - 1
zrpc/internal/serverinterceptors/statinterceptor.go

@@ -26,7 +26,6 @@ func SetSlowThreshold(threshold time.Duration) {
 func UnaryStatInterceptor(metrics *stat.Metrics) grpc.UnaryServerInterceptor {
 	return func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo,
 		handler grpc.UnaryHandler) (resp interface{}, err error) {
-		
 		startTime := timex.Now()
 		defer func() {
 			duration := timex.Since(startTime)