chore: update roadmap (#1948)

master
Kevin Wan 3 years ago committed by GitHub
parent 65098d4737
commit 321a20add6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,7 +22,7 @@ We hope that the items listed below will inspire further engagement from the com
## 2022 ## 2022
- [x] Support `context` in redis related methods for timeout and tracing - [x] Support `context` in redis related methods for timeout and tracing
- [x] Support `context` in sql 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. - [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 doctor` command to report potential issues for given service
- [ ] Support `goctl mock` command to start a mocking server with given `.api` file - [ ] Support `goctl mock` command to start a mocking server with given `.api` file

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

@ -98,6 +98,10 @@ func TestRotateLoggerRotate(t *testing.T) {
case *os.LinkError: case *os.LinkError:
// avoid rename error on docker container // avoid rename error on docker container
assert.Equal(t, syscall.EXDEV, v.Err) 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: default:
assert.Nil(t, err) assert.Nil(t, err)
} }

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

Loading…
Cancel
Save