@@ -109,10 +109,7 @@ func transferTxNodePath(key string) string {
109
109
// TODO : unit tests
110
110
func (q * EtcdQDB ) CreateKeyRange (ctx context.Context , keyRange * KeyRange ) error {
111
111
spqrlog .Zero .Debug ().
112
- Bytes ("lower-bound" , keyRange .LowerBound [0 ]).
113
- Str ("shard-id" , keyRange .ShardID ).
114
- Str ("distribution-id" , keyRange .DistributionId ).
115
- Str ("key-range-id" , keyRange .KeyRangeID ).
112
+ Interface ("key-range" , keyRange ).
116
113
Msg ("etcdqdb: add key range" )
117
114
118
115
rawKeyRange , err := json .Marshal (keyRange )
@@ -171,11 +168,8 @@ func (q *EtcdQDB) GetKeyRange(ctx context.Context, id string) (*KeyRange, error)
171
168
// TODO : unit tests
172
169
func (q * EtcdQDB ) UpdateKeyRange (ctx context.Context , keyRange * KeyRange ) error {
173
170
spqrlog .Zero .Debug ().
174
- Bytes ("lower-bound" , keyRange .LowerBound [0 ]).
175
- Str ("shard-id" , keyRange .ShardID ).
176
- Str ("distribution-id" , keyRange .KeyRangeID ).
177
- Str ("key-range-id" , keyRange .KeyRangeID ).
178
- Msg ("etcdqdb: add key range" )
171
+ Interface ("key-range" , keyRange ).
172
+ Msg ("etcdqdb: update key range" )
179
173
180
174
rawKeyRange , err := json .Marshal (keyRange )
181
175
if err != nil {
0 commit comments