Skip to content

Commit

Permalink
to common code style
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-korotya committed Jun 17, 2024
1 parent b756599 commit 15f1183
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
14 changes: 7 additions & 7 deletions internal/core/services/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,13 +751,13 @@ func (i *identity) createIdentity(ctx context.Context, tx db.Querier, hostURL st

if len(rhsPublishers) > 0 {
if rhsMode == reverse_hash.RHSModeOnChain && !i.autoPublishingToOnChainRHS {
log.Info(ctx, `
state info (hashes):
root: '%s',
ClaimsTreeRoot: '%s',
RevocationsTreeRoot: '%s',
RootOfRootsTreeRoot: '%s',
`, identity.State.TreeState().State, claimsTree.Root(), &merkletree.HashZero, &merkletree.HashZero)
log.Info(ctx,
"state info (bigints):",
"root:", identity.State.TreeState().State.BigInt().String(),
"claimsTreeRoot:", claimsTree.Root().BigInt().String(),
"revocationsTreeRoot:", merkletree.HashZero.BigInt().String(),
"rootOfRootsTreeRoot:", merkletree.HashZero.BigInt().String(),
)
} else {
log.Info(ctx, "publishing state to RHS", "publishers", len(rhsPublishers))
for _, rhsPublisher := range rhsPublishers {
Expand Down
5 changes: 1 addition & 4 deletions internal/core/services/mediatype_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ func NewMediaTypeManager(allowList map[iden3comm.ProtocolMessage][]string, stric
}

// AllowMediaType check if the protocol message supports the mediaType type
func (m *MediaTypeManager) AllowMediaType(
protoclMessage iden3comm.ProtocolMessage,
mediaType iden3comm.MediaType,
) bool {
func (m *MediaTypeManager) AllowMediaType(protoclMessage iden3comm.ProtocolMessage, mediaType iden3comm.MediaType) bool {
al, ok := m.allowList[protoclMessage]
if !ok {
return !m.strictMode
Expand Down

0 comments on commit 15f1183

Please sign in to comment.